diff options
author | Eric Dumazet <edumazet@google.com> | 2021-11-15 20:23:02 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-17 06:07:53 +0300 |
commit | 7071732c26fe2cf141185ed16a8a85d02495ae8c (patch) | |
tree | c5fe44d41544dfe195c3bf58b70068ea27571e60 /include | |
parent | c2c60ea37e5b6be58c9dd7aff0b2e86ba0f18e0b (diff) | |
download | linux-7071732c26fe2cf141185ed16a8a85d02495ae8c.tar.xz |
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; \ |