aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r--net/sctp/protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index a3c8988758b1..9687177b026b 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -996,12 +996,13 @@ int sctp_register_pf(struct sctp_pf *pf, sa_family_t family)
996 996
997static inline int init_sctp_mibs(void) 997static inline int init_sctp_mibs(void)
998{ 998{
999 return snmp_mib_init((void**)sctp_statistics, sizeof(struct sctp_mib)); 999 return snmp_mib_init((void __percpu **)sctp_statistics,
1000 sizeof(struct sctp_mib));
1000} 1001}
1001 1002
1002static inline void cleanup_sctp_mibs(void) 1003static inline void cleanup_sctp_mibs(void)
1003{ 1004{
1004 snmp_mib_free((void**)sctp_statistics); 1005 snmp_mib_free((void __percpu **)sctp_statistics);
1005} 1006}
1006 1007
1007static void sctp_v4_pf_init(void) 1008static void sctp_v4_pf_init(void)