Message ID | 20211115172303.3732746-2-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c2c60ea37e5b6be58c9dd7aff0b2e86ba0f18e0b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: better packing of global vars | expand |
diff --git a/include/linux/once.h b/include/linux/once.h index d361fb14ac3a2c5b77c289107f093862194ebd1c..f54523052bbcb5d0c13017d4684b68ceb8da5855 100644 --- a/include/linux/once.h +++ b/include/linux/once.h @@ -38,7 +38,7 @@ void __do_once_done(bool *done, struct static_key_true *once_key, #define DO_ONCE(func, ...) \ ({ \ bool ___ret = false; \ - static bool ___done = false; \ + static bool __section(".data.once") ___done = false; \ static DEFINE_STATIC_KEY_TRUE(___once_key); \ if (static_branch_unlikely(&___once_key)) { \ unsigned long ___flags; \