[SNMP]: Remove unused devconf macros.
authorPavel Emelyanov <xemul@openvz.org>
Sat, 8 Dec 2007 07:56:57 +0000 (23:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:55 +0000 (14:56 -0800)
The SNMP_INC_STATS_OFFSET_BH is used only by ICMP6_INC_STATS_OFFSET_BH.
The ICMP6_INC_STATS_OFFSET_BH is unused.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
include/net/snmp.h

index a84f3f697a34c759ece221f1ed0496049d400b9f..38df94b5fb266da6357bf058b8507884c9a4affe 100644 (file)
@@ -143,14 +143,6 @@ DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
 #define ICMP6_INC_STATS_BH(idev, field)        _DEVINC(icmpv6, _BH, idev, field)
 #define ICMP6_INC_STATS_USER(idev, field) _DEVINC(icmpv6, _USER, idev, field)
 
-#define ICMP6_INC_STATS_OFFSET_BH(idev, field, offset) ({                      \
-       struct inet6_dev *_idev = idev;                                         \
-       __typeof__(offset) _offset = (offset);                                  \
-       if (likely(_idev != NULL))                                              \
-               SNMP_INC_STATS_OFFSET_BH(_idev->stats.icmpv6, field, _offset);  \
-       SNMP_INC_STATS_OFFSET_BH(icmpv6_statistics, field, _offset);            \
-})
-
 #define ICMP6MSGOUT_INC_STATS(idev, field) \
        _DEVINC(icmpv6msg, , idev, field +256)
 #define ICMP6MSGOUT_INC_STATS_BH(idev, field) \
index ea206bff0dc4c01e8fa6cfa5f00d82add2c96743..9c5793db637fcb70dda9f8bebc73fbe27e2ceafb 100644 (file)
@@ -134,8 +134,6 @@ struct linux_mib {
 
 #define SNMP_INC_STATS_BH(mib, field)  \
        (per_cpu_ptr(mib[0], raw_smp_processor_id())->mibs[field]++)
-#define SNMP_INC_STATS_OFFSET_BH(mib, field, offset)   \
-       (per_cpu_ptr(mib[0], raw_smp_processor_id())->mibs[field + (offset)]++)
 #define SNMP_INC_STATS_USER(mib, field) \
        (per_cpu_ptr(mib[1], raw_smp_processor_id())->mibs[field]++)
 #define SNMP_INC_STATS(mib, field)     \