summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndre Carvalho <asantostc@gmail.com>2026-01-18 14:00:25 +0300
committerJakub Kicinski <kuba@kernel.org>2026-01-22 06:09:11 +0300
commitc52861e566db8af86c9fb412ccffa274c610babf (patch)
treeb9b08d9ec66d51e5d40a2469a5918f8de518f883 /include/linux
parent5b114087438dcd229c8754c093c44619c346d67c (diff)
downloadlinux-c52861e566db8af86c9fb412ccffa274c610babf.tar.xz
netconsole: introduce helpers for dynamic_netconsole_mutex lock/unlock
This commit introduces two helper functions to perform lock/unlock on dynamic_netconsole_mutex providing no-op stub versions when compiled without CONFIG_NETCONSOLE_DYNAMIC and refactors existing call sites to use the new helpers. This is done following kernel coding style guidelines, in preparation for an upcoming change. It avoids the need for preprocessor conditionals in the call site and keeps the logic easier to follow. Signed-off-by: Andre Carvalho <asantostc@gmail.com> Reviewed-by: Breno Leitao <leitao@debian.org> Tested-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20260118-netcons-retrigger-v11-5-4de36aebcf48@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions