diff options
author | Eric Dumazet <edumazet@google.com> | 2021-11-15 09:23:02 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-16 19:07:53 -0800 |
commit | 7071732c26fe2cf141185ed16a8a85d02495ae8c (patch) | |
tree | c5fe44d41544dfe195c3bf58b70068ea27571e60 /include | |
parent | c2c60ea37e5b6be58c9dd7aff0b2e86ba0f18e0b (diff) | |
download | lwn-7071732c26fe2cf141185ed16a8a85d02495ae8c.tar.gz lwn-7071732c26fe2cf141185ed16a8a85d02495ae8c.zip |
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: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 31a7e6b27681..dd328364dfe9 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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; \ |