Re: about function attributes for functions returning a pointer

2010-10-04 Thread Ian Lance Taylor
Uwe Kleine-König writes: > in the linux kernel I defined a function as follows: > > static struct platform_device *__init __maybe_unused > imx_add_imx_dma(void) > { > ... > } > > and the only used was #ifdefed out. > > With the following defines: > > #define

about function attributes for functions returning a pointer

2010-10-04 Thread Uwe Kleine-König
Hello, in the linux kernel I defined a function as follows: static struct platform_device *__init __maybe_unused imx_add_imx_dma(void) { ... } and the only used was #ifdefed out. With the following defines: #define __section(S) __attribute__ ((_