Messages in this thread Patch in this message | | | Date | Mon, 8 Nov 2021 18:35:46 +0800 | From | kernel test robot <> | Subject | [RFC PATCH deller-parisc] hpmc_addr can be static |
| |
drivers/tty/sysrq.c:150:15: warning: symbol 'hpmc_addr' was not declared. Should it be static?
Fixes: c743202c8e5c ("hpmc trigger") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@intel.com> --- sysrq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index b8a982f12ba9f..c95b22fe3cd26 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -147,7 +147,7 @@ static const struct sysrq_key_op sysrq_unraw_op = { #define sysrq_unraw_op (*(const struct sysrq_key_op *)NULL) #endif /* CONFIG_VT */ -unsigned long *hpmc_addr; +static unsigned long *hpmc_addr; static void sysrq_handle_crash(int key) { /* release the RCU read lock before crashing */
| |