Message ID | 20211115172303.3732746-3-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7071732c26fe2cf141185ed16a8a85d02495ae8c |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: better packing of global vars | expand |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 3ec42495a43a56dbd51fecd166d572a9e586e3e4..e6beb603537572aae64e33ea2c739741b4f97ce5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -5291,7 +5291,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; \