parisc: Add visible flag to toc_stack variable
authorHelge Deller <deller@gmx.de>
Thu, 13 Jan 2022 10:58:05 +0000 (11:58 +0100)
committerHelge Deller <deller@gmx.de>
Thu, 13 Jan 2022 10:58:05 +0000 (11:58 +0100)
Add the visible flag to the toc_stack variable to make it visible for
assembly code and to avoid a sparse warning.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/toc.c

index be9a0be..fa5a10e 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/ldcw.h>
 
 static unsigned int __aligned(16) toc_lock = 1;
-DEFINE_PER_CPU_PAGE_ALIGNED(char [16384], toc_stack);
+DEFINE_PER_CPU_PAGE_ALIGNED(char [16384], toc_stack) __visible;
 
 static void toc20_to_pt_regs(struct pt_regs *regs, struct pdc_toc_pim_20 *toc)
 {