]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/dccp/proto.c
snmp: add align parameter to snmp_mib_init()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 22 Jun 2010 20:58:41 +0000 (20:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jun 2010 04:33:17 +0000 (21:33 -0700)
commit1823e4c80eeae2a774c75569ce3035070e5ee009
treebdc1bdf4a67027193312ad584924ca8a986a064c
parent5eaa0bd81f93225b6d1972b373ed00ca763052b2
snmp: add align parameter to snmp_mib_init()

In preparation for 64bit snmp counters for some mibs,
add an 'align' parameter to snmp_mib_init(), instead
of assuming mibs only contain 'unsigned long' fields.

Callers can use __alignof__(type) to provide correct
alignment.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
CC: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
CC: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/dccp/proto.c
net/ipv4/af_inet.c
net/ipv6/addrconf.c
net/ipv6/af_inet6.c
net/sctp/protocol.c
net/xfrm/xfrm_policy.c