OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2c60ea
)
net: use .data.once section in netdev_level_once()
author
Eric Dumazet
<edumazet@google.com>
Mon, 15 Nov 2021 17:23:02 +0000
(09:23 -0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 17 Nov 2021 03:07:53 +0000
(19:07 -0800)
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>
include/linux/netdevice.h
patch
|
blob
|
history
diff --git
a/include/linux/netdevice.h
b/include/linux/netdevice.h
index
31a7e6b
..
dd32836
100644
(file)
--- 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; \