The patch titled Subject: kernel/watchdog: fix watchdog_allowed_mask not used warning has been added to the -mm tree. Its filename is kernel-watchdog-fix-watchdog_allowed_mask-not-used-warning.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/kernel-watchdog-fix-watchdog_allowed_mask-not-used-warning.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/kernel-watchdog-fix-watchdog_allowed_mask-not-used-warning.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Santosh Sivaraj <santosh@xxxxxxxxxx> Subject: kernel/watchdog: fix watchdog_allowed_mask not used warning Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled. Link: https://lkml.kernel.org/r/20201106015025.1281561-1-santosh@xxxxxxxxxx Fixes: 7feeb9cd4f5b ("watchdog/sysctl: Clean up sysctl variable name space") Signed-off-by: Santosh Sivaraj <santosh@xxxxxxxxxx> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/watchdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/kernel/watchdog.c~kernel-watchdog-fix-watchdog_allowed_mask-not-used-warning +++ a/kernel/watchdog.c @@ -44,8 +44,6 @@ int __read_mostly soft_watchdog_user_ena int __read_mostly watchdog_thresh = 10; static int __read_mostly nmi_watchdog_available; -static struct cpumask watchdog_allowed_mask __read_mostly; - struct cpumask watchdog_cpumask __read_mostly; unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask); @@ -162,6 +160,8 @@ static void lockup_detector_update_enabl int __read_mostly sysctl_softlockup_all_cpu_backtrace; #endif +static struct cpumask watchdog_allowed_mask __read_mostly; + /* Global variables, exported for sysctl */ unsigned int __read_mostly softlockup_panic = CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE; _ Patches currently in -mm which might be from santosh@xxxxxxxxxx are kernel-watchdog-fix-watchdog_allowed_mask-not-used-warning.patch