RDMA/cm: Fix sparse warning about cm_class
PATCH 1/1 RDMA/cm: Fix sparse warning about cm_class
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 <[email protected]>
Cc Roland Dreier <[email protected]>
--- drivers/infiniband/core/ucm.c | 3 --- include/rdma/ib_cm.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/infiniband/core/ucm.c +0 -3
@@ -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);
include/rdma/ib_cm.h +3 -0
@@ -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
Signature · 6 lines
1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html