From: Eric Dumazet Date: Mon, 15 Nov 2021 17:23:02 +0000 (-0800) Subject: net: use .data.once section in netdev_level_once() X-Git-Tag: nvme-5.17-2022-01-27~177^2~440^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7071732c26fe2cf141185ed16a8a85d02495ae8c;p=nvme.git 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 Signed-off-by: Jakub Kicinski --- 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; \