From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: Writable sys_call_table (was: Re: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table) Date: Tue, 19 Apr 2011 14:16:35 +0200 Message-ID: <201104191416.35746.arnd@arndb.de> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Andreas Schwab Cc: Finn Thain , Geert Uytterhoeven , Greg Ungerer , Gavin Lambert , uClinux development list , Philippe De Muyter , Linux/m68k , linux-arch@vger.kernel.org On Tuesday 19 April 2011, Andreas Schwab wrote: > Finn Thain writes: > > > Wouldn't that require const void * const sys_call_table[] ? > > No, the right signature would be void (*const sys_call_table[])(void) > since this is an array of function pointers. > But it's not an array of pointers to function with signature void f(void). It's an array of void pointers that we assign to function pointers of various types. Arnd