From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: Writable sys_call_table (was: Re: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table) Date: Mon, 18 Apr 2011 18:21:02 +0200 Message-ID: References: <201104181649.31492.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <201104181649.31492.arnd@arndb.de> (Arnd Bergmann's message of "Mon, 18 Apr 2011 16:49:31 +0200") Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Arnd Bergmann Cc: Geert Uytterhoeven , Greg Ungerer , Gavin Lambert , uClinux development list , Philippe De Muyter , Linux/m68k , linux-arch@vger.kernel.org Arnd Bergmann writes: > diff --git a/arch/score/kernel/sys_call_table.c b/arch/score/kernel/sys_call_table.c > index 287369b..7be73dc 100644 > --- a/arch/score/kernel/sys_call_table.c > +++ b/arch/score/kernel/sys_call_table.c > @@ -7,6 +7,6 @@ > #undef __SYSCALL > #define __SYSCALL(nr, call) [nr] = (call), > > -void *sys_call_table[__NR_syscalls] = { > +const void *sys_call_table[__NR_syscalls] = { That's not making it read-only. You need to move the const to the other side of the pointer. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."