Skip to content

Commit

Permalink
ipv6: add include file to suppress sparse warnings
Browse files Browse the repository at this point in the history
commit f88c91d ("ipv6: statically link
register_inet6addr_notifier()" added following sparse warnings :

net/ipv6/addrconf_core.c:83:5: warning: symbol
'register_inet6addr_notifier' was not declared. Should it be static?
net/ipv6/addrconf_core.c:89:5: warning: symbol
'unregister_inet6addr_notifier' was not declared. Should it be static?
net/ipv6/addrconf_core.c:95:5: warning: symbol
'inet6addr_notifier_call_chain' was not declared. Should it be static?

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 25, 2013
1 parent 7ae8639 commit 6da334e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/addrconf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <linux/export.h>
#include <net/ipv6.h>
#include <net/addrconf.h>

#define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16)

Expand Down

0 comments on commit 6da334e

Please sign in to comment.