Commit f5d1f6d6 authored by Bob Pearson's avatar Bob Pearson Committed by Jason Gunthorpe

RDMA/rxe: Replace include statement

rxe_queue.h currently includes <uapi/rdma/rdma_user_rxe.h> for a
definition of struct rxe_queue_buf. But it is only used as a pointer so
the definition is not needed.

This patch replaces the include statement with the declaration

     struct rxe_queue_buf;

Link: https://lore.kernel.org/r/20220630190425.2251-5-rpearsonhpe@gmail.comReported-by: default avatarFrank Zago <frank.zago@hpe.com>
Signed-off-by: default avatarBob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent cae3fa54
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
#ifndef RXE_QUEUE_H #ifndef RXE_QUEUE_H
#define RXE_QUEUE_H #define RXE_QUEUE_H
/* for definition of shared struct rxe_queue_buf */
#include <uapi/rdma/rdma_user_rxe.h>
/* Implements a simple circular buffer that is shared between user /* Implements a simple circular buffer that is shared between user
* and the driver and can be resized. The requested element size is * and the driver and can be resized. The requested element size is
* rounded up to a power of 2 and the number of elements in the buffer * rounded up to a power of 2 and the number of elements in the buffer
...@@ -53,6 +50,8 @@ enum queue_type { ...@@ -53,6 +50,8 @@ enum queue_type {
QUEUE_TYPE_FROM_DRIVER, QUEUE_TYPE_FROM_DRIVER,
}; };
struct rxe_queue_buf;
struct rxe_queue { struct rxe_queue {
struct rxe_dev *rxe; struct rxe_dev *rxe;
struct rxe_queue_buf *buf; struct rxe_queue_buf *buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment