From: Eric Dumazet Date: Mon, 15 Nov 2021 17:23:01 +0000 (-0800) Subject: once: use __section(".data.once") X-Git-Tag: baikal/aarch64/sdk6.1~4966^2~440^2~2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=151f487ff38959e926f87d036bf6d5c9bd023f8c;p=kernel.git once: use __section(".data.once") .data.once contains nicely packed bool variables. It is used already by DO_ONCE_LITE(). Using it also in DO_ONCE() removes holes in .data section. Signed-off-by: Eric Dumazet Signed-off-by: Jakub Kicinski --- diff --git a/include/linux/once.h b/include/linux/once.h index d361fb14ac3a2..f54523052bbcb 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; \