Skip to contentSkip to conversation

parisc: Add visible flag to toc_stack variable

PATCH New Helge Deller 1 participant 1 message Jan 13, 2022 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Add visible flag to toc_stack variable

Add the visible flag to the toc_stack variable to make it visible for assembly code and to avoid a sparse warning.

---
 arch/parisc/kernel/toc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/parisc/kernel/toc.c +1 -1
index be9a0bebe61e..fa5a10eaf0aa 100644
@@ -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)
 {

--
2.31.1