Skip to content

Commit c61393e

Browse files
stephen hemmingerdavem330
authored andcommitted
ipv6: make __ipv6_isatap_ifid static
Another exported symbol only used in one file Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1df9916 commit c61393e

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎include/net/addrconf.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ static inline int ipv6_addr_is_ll_all_routers(const struct in6_addr *addr)
276276
(addr->s6_addr32[3] ^ htonl(0x00000002))) == 0;
277277
}
278278

279-
extern int __ipv6_isatap_ifid(u8 *eui, __be32 addr);
280-
281279
static inline int ipv6_addr_is_isatap(const struct in6_addr *addr)
282280
{
283281
return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE);

‎net/ipv6/addrconf.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ static int addrconf_ifid_infiniband(u8 *eui, struct net_device *dev)
15441544
return 0;
15451545
}
15461546

1547-
int __ipv6_isatap_ifid(u8 *eui, __be32 addr)
1547+
static int __ipv6_isatap_ifid(u8 *eui, __be32 addr)
15481548
{
15491549
if (addr == 0)
15501550
return -1;
@@ -1560,7 +1560,6 @@ int __ipv6_isatap_ifid(u8 *eui, __be32 addr)
15601560
memcpy(eui + 4, &addr, 4);
15611561
return 0;
15621562
}
1563-
EXPORT_SYMBOL(__ipv6_isatap_ifid);
15641563

15651564
static int addrconf_ifid_sit(u8 *eui, struct net_device *dev)
15661565
{

0 commit comments

Comments
 (0)