Re: Writable sys_call_table (was: Re: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table)

Arnd Bergmann
2011-04-19T12:16:35Z

On Tuesday 19 April 2011, Andreas Schwab wrote:
> Finn Thain <fthain@telegraphics.com.au> 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