[PATCH batadv 0/2] batman-adv: compat add support for scoped_guard
Sven Eckelmann <[email protected]>
| Newsgroups | org.open-mesh.lists.batman |
|---|---|
| Message-ID | <[email protected]> |
netdev rejected the protection of the TT flags using atomic_t. Instead, it was requested to use spinlock_t instead. But for the implementation using spinlocks, it can make sense to use scope_guard because the current TT code would otherwise be an easy source of missing unlocks. Unfortunately, scope_guard requires a C11 kernel (Linux >= 5.18). The support for older kernels must therefore be dropped. Signed-off-by: Sven Eckelmann <[email protected]> --- Sven Eckelmann (2): batman-adv: compat: drop support for pre-C11 kernels batman-adv: compat: add scoped_guard(spinlock_bh, ...) support README.external.rst | 2 +- compat-include/linux/array_size.h | 3 +- compat-include/linux/cleanup.h | 48 ++++++++++++++++++ compat-include/linux/compiler.h | 15 ++++++ compat-include/linux/container_of.h | 13 ----- compat-include/linux/etherdevice.h | 20 -------- compat-include/linux/if_bridge.h | 51 ------------------- compat-include/linux/if_vlan.h | 2 - compat-include/linux/kstrtox.h | 14 ------ compat-include/linux/netdevice.h | 49 +----------------- compat-include/linux/spinlock.h | 20 ++++++++ compat-include/linux/stdarg.h | 13 ----- compat-include/linux/string_choices.h | 12 ----- compat-include/linux/timer.h | 1 - compat-include/net/addrconf.h | 94 ----------------------------------- net/batman-adv/multicast.c | 7 --- 16 files changed, 87 insertions(+), 277 deletions(-) --- base-commit: 46e983472304d8875436a23ccb996ea18856081a change-id: 20260805-scoped_guard-compat-3a24b95f2810 Best regards, -- Sven Eckelmann <[email protected]>