[PATCH] kernel/watchdog: fix warning -Wunused-variable for watchdog_allowed_mask in ppc64
Michael Ellerman
mpe at ellerman.id.au
Fri Aug 14 23:13:33 AEST 2020
Balamuruhan S <bala24 at linux.ibm.com> writes:
> In ppc64 config if `CONFIG_SOFTLOCKUP_DETECTOR` is not set then it
> warns for unused declaration of `watchdog_allowed_mask` while building,
> move the declaration inside ifdef later in the code.
>
> ```
> kernel/watchdog.c:47:23: warning: ‘watchdog_allowed_mask’ defined but not used [-Wunused-variable]
> static struct cpumask watchdog_allowed_mask __read_mostly;
> ```
>
> Signed-off-by: Balamuruhan S <bala24 at linux.ibm.com>
> ---
> kernel/watchdog.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I don't maintain that file.
Please resend and Cc it to:
$ ./scripts/get_maintainer.pl -f kernel/watchdog.c
tglx at linutronix.de
peterz at infradead.org
Jisheng.Zhang at synaptics.com
rdna at fb.com
viro at zeniv.linux.org.uk
gpiccoli at canonical.com
pmladek at suse.com
linux-kernel at vger.kernel.org
cheers
More information about the Linuxppc-dev
mailing list