@@ -106,9 +106,6 @@ enum {
IB_UCM_MAX_DEVICES = 32
};
-/* ib_cm and ib_user_cm modules share /sys/class/infiniband_cm */
-extern struct class cm_class;
-
#define IB_UCM_BASE_DEV MKDEV(IB_UCM_MAJOR, IB_UCM_BASE_MINOR)
static void ib_ucm_add_one(struct ib_device *device);
@@ -291,6 +291,9 @@ struct ib_cm_id {
u32 remote_cm_qpn; /* 1 unless redirected */
};
+/* ib_cm and ib_user_cm modules share /sys/class/infiniband_cm */
+extern struct class cm_class;
+
/**
* ib_create_cm_id - Allocate a communication identifier.
* @device: Device associated with the cm_id. All related communication will
Fix a sparse warning about a missing declaration for the symbol cm_class in source file drivers/infiniband/core/ucm.c. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Cc: Roland Dreier <roland@purestorage.com> --- drivers/infiniband/core/ucm.c | 3 --- include/rdma/ib_cm.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)