Commit 7071732c authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski
Browse files

net: use .data.once section in netdev_level_once()



Same rationale than prior patch : using the dedicated
section avoid holes and pack all these bool values.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c2c60ea3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4942,7 +4942,7 @@ void netdev_info(const struct net_device *dev, const char *format, ...);

#define netdev_level_once(level, dev, fmt, ...)			\
do {								\
	static bool __print_once __read_mostly;			\
	static bool __section(".data.once") __print_once;	\
								\
	if (!__print_once) {					\
		__print_once = true;				\