rds: Fix build regression.
authorDavid S. Miller <davem@davemloft.net>
Sun, 23 Sep 2018 19:25:15 +0000 (12:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Sep 2018 19:25:15 +0000 (12:25 -0700)
Use DECLARE_* not DEFINE_*

Fixes: 8360ed6745df ("RDS: IB: Use DEFINE_PER_CPU_SHARED_ALIGNED for rds_ib_stats")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib.h

index fd483760c910e3a93f6a9085396bb79067e99eb3..71ff356ee7020d881b35d71747076f28530cb5e7 100644 (file)
@@ -443,7 +443,7 @@ int rds_ib_send_grab_credits(struct rds_ib_connection *ic, u32 wanted,
 int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op);
 
 /* ib_stats.c */
-DEFINE_PER_CPU_SHARED_ALIGNED(struct rds_ib_statistics, rds_ib_stats);
+DECLARE_PER_CPU_SHARED_ALIGNED(struct rds_ib_statistics, rds_ib_stats);
 #define rds_ib_stats_inc(member) rds_stats_inc_which(rds_ib_stats, member)
 #define rds_ib_stats_add(member, count) \
                rds_stats_add_which(rds_ib_stats, member, count)