All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: fix sys_call_table declaration
@ 2014-10-02 14:41 ` Romeo Cane
  0 siblings, 0 replies; 8+ messages in thread
From: Romeo Cane @ 2014-10-02 14:41 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman
  Cc: linuxppc-dev, linux-kernel

Declaring sys_call_table as a pointer causes the compiler to generate the wrong lookup code in arch_syscall_addr

Signed-off-by: Romeo Cane <romeo.cane.ext@coriant.com>
---
 arch/powerpc/include/asm/syscall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/syscall.h b/arch/powerpc/include/asm/syscall.h
index b54b2ad..528ba9d 100644
--- a/arch/powerpc/include/asm/syscall.h
+++ b/arch/powerpc/include/asm/syscall.h
@@ -17,7 +17,7 @@
 
 /* ftrace syscalls requires exporting the sys_call_table */
 #ifdef CONFIG_FTRACE_SYSCALLS
-extern const unsigned long *sys_call_table;
+extern const unsigned long sys_call_table[];
 #endif /* CONFIG_FTRACE_SYSCALLS */
 
 static inline long syscall_get_nr(struct task_struct *task,
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-07 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-02 14:41 [PATCH] powerpc: fix sys_call_table declaration Romeo Cane
2014-10-02 14:41 ` Romeo Cane
2014-10-02 21:34 ` Benjamin Herrenschmidt
2014-10-02 21:34   ` Benjamin Herrenschmidt
2014-10-03 10:00   ` Romeo Cane
2014-10-03 10:00     ` Romeo Cane
2014-10-07 12:15     ` Michael Ellerman
2014-10-07 12:15       ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.