Commit 95a3c96c authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski
Browse files

inetpeer: use EXPORT_IPV6_MOD[_GPL]()



Use EXPORT_IPV6_MOD[_GPL]() for symbols that do not need to
to be exported unless CONFIG_IPV6=m

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: default avatarMateusz Polchlopek <mateusz.polchlopek@intel.com>
Link: https://patch.msgid.link/20250212132418.1524422-3-edumazet@google.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 54568a84
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ void inet_peer_base_init(struct inet_peer_base *bp)
	seqlock_init(&bp->lock);
	bp->total = 0;
}
EXPORT_SYMBOL_GPL(inet_peer_base_init);
EXPORT_IPV6_MOD_GPL(inet_peer_base_init);

#define PEER_MAX_GC 32

@@ -218,7 +218,7 @@ struct inet_peer *inet_getpeer(struct inet_peer_base *base,

	return p;
}
EXPORT_SYMBOL_GPL(inet_getpeer);
EXPORT_IPV6_MOD_GPL(inet_getpeer);

void inet_putpeer(struct inet_peer *p)
{
@@ -269,7 +269,7 @@ bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout)
		WRITE_ONCE(peer->rate_tokens, token);
	return rc;
}
EXPORT_SYMBOL(inet_peer_xrlim_allow);
EXPORT_IPV6_MOD(inet_peer_xrlim_allow);

void inetpeer_invalidate_tree(struct inet_peer_base *base)
{
@@ -286,4 +286,4 @@ void inetpeer_invalidate_tree(struct inet_peer_base *base)

	base->total = 0;
}
EXPORT_SYMBOL(inetpeer_invalidate_tree);
EXPORT_IPV6_MOD(inetpeer_invalidate_tree);