aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/udp.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-07-05 21:18:07 -0700
committerDavid S. Miller <davem@davemloft.net>2008-07-05 21:18:07 -0700
commit629ca23c331ec75ac87b016debbb3c4d2fe62650 (patch)
tree491b70f7b51ac43cd706564f741366f9f05ccf13 /include/net/udp.h
parent4ce2417bfb3c7b1c5ed449782f4d86bafd7f1b69 (diff)
downloadkernel_goldelico_gta04-629ca23c331ec75ac87b016debbb3c4d2fe62650.zip
kernel_goldelico_gta04-629ca23c331ec75ac87b016debbb3c4d2fe62650.tar.gz
kernel_goldelico_gta04-629ca23c331ec75ac87b016debbb3c4d2fe62650.tar.bz2
MIB: add struct net to UDP_INC_STATS_USER
Nothing special - all the places already have a struct sock at hands, so use the sock_net() net. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udp.h')
-rw-r--r--include/net/udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index 7a86848..1331909 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -158,7 +158,7 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
/*
* SNMP statistics for UDP and UDP-Lite
*/
-#define UDP_INC_STATS_USER(field, is_udplite) do { \
+#define UDP_INC_STATS_USER(net, field, is_udplite) do { (void)net; \
if (is_udplite) SNMP_INC_STATS_USER(udplite_statistics, field); \
else SNMP_INC_STATS_USER(udp_statistics, field); } while(0)
#define UDP_INC_STATS_BH(field, is_udplite) do { \