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

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
...@@ -4942,7 +4942,7 @@ void netdev_info(const struct net_device *dev, const char *format, ...); ...@@ -4942,7 +4942,7 @@ void netdev_info(const struct net_device *dev, const char *format, ...);
#define netdev_level_once(level, dev, fmt, ...) \ #define netdev_level_once(level, dev, fmt, ...) \
do { \ do { \
static bool __print_once __read_mostly; \ static bool __section(".data.once") __print_once; \
\ \
if (!__print_once) { \ if (!__print_once) { \
__print_once = true; \ __print_once = true; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment