diff options
author | Joe Perches <joe@perches.com> | 2014-05-14 05:30:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-14 22:07:23 +0200 |
commit | c7228317441f4dee5e5916e30300dd8c61f75af7 (patch) | |
tree | d1a2183e764d0c424bd44f41ea4e1db9937be84c /net/ipv4/udp.c | |
parent | net: systemport: Use devm_ioremap_resource() (diff) | |
download | linux-c7228317441f4dee5e5916e30300dd8c61f75af7.tar.xz linux-c7228317441f4dee5e5916e30300dd8c61f75af7.zip |
net: Use a more standard macro for INET_ADDR_COOKIE
Missing a colon on definition use is a bit odd so
change the macro for the 32 bit case to declare an
__attribute__((unused)) and __deprecated variable.
The __deprecated attribute will cause gcc to emit
an error if the variable is actually used.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 6729ea97a59d..590532a7bd2d 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1875,7 +1875,7 @@ static struct sock *__udp4_lib_demux_lookup(struct net *net, unsigned int hash2 = udp4_portaddr_hash(net, loc_addr, hnum); unsigned int slot2 = hash2 & udp_table.mask; struct udp_hslot *hslot2 = &udp_table.hash2[slot2]; - INET_ADDR_COOKIE(acookie, rmt_addr, loc_addr) + INET_ADDR_COOKIE(acookie, rmt_addr, loc_addr); const __portpair ports = INET_COMBINED_PORTS(rmt_port, hnum); rcu_read_lock(); |