summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-09-23 21:25:15 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-23 21:25:15 +0200
commit16fdf8ba98391650ce4bc4f3f71629d8a413bc21 (patch)
tree706fcbc1e5f63ea949e5680f1359dfd562f9698c
parentnet-ethtool: ETHTOOL_GUFO did not and should not require CAP_NET_ADMIN (diff)
downloadlinux-16fdf8ba98391650ce4bc4f3f71629d8a413bc21.tar.xz
linux-16fdf8ba98391650ce4bc4f3f71629d8a413bc21.zip
rds: Fix build regression.
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>
-rw-r--r--net/rds/ib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h
index fd483760c910..71ff356ee702 100644
--- a/net/rds/ib.h
+++ b/net/rds/ib.h
@@ -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)