]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/watchdog: fix watchdog_allowed_mask not used warning
authorSantosh Sivaraj <santosh@fossix.org>
Sat, 14 Nov 2020 06:52:10 +0000 (22:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Nov 2020 19:26:03 +0000 (11:26 -0800)
commitfebac3e90072ac850d2212b271de95922933544e
treecbb003ba8bfdcefb19517d028e30ab0e5ab4d3a2
parentf95ceb5d74d66ed6af68c2e1b373b42bab03af72
kernel/watchdog: fix watchdog_allowed_mask not used warning

Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled.

Fixes: 4845e6bf7dce ("watchdog/sysctl: Clean up sysctl variable name space")
Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20201106015025.1281561-1-santosh@fossix.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/watchdog.c