[PATCH - 3rd attempt] ARM: Support for Embedian MXM-8x10 eval kit
Eric Miao
eric.y.miao at gmail.com
Tue Jan 19 00:29:43 EST 2010
On Tue, Jan 19, 2010 at 1:15 PM, Hennie van der Merwe
<hvdmerwe at tmtservices.co.za> wrote:
> Hi Daniel,
>
> Thanks for the comments.
>
> Daniel Mack wrote:
>>>
>>> +inline void mxm_8x10_mmc_init(void)
>>> +{
>>> +}
>>>
>>
>> You should make that inline function static.
>>
>
> I originally wrote it like this because I wanted the option for the machine
> implementing the MXM-8x10 module to initialise the MMC or not. I'm not sure
> static is appropriate (as it is exported in the header). Could we perhaps
> drop the inline and just make it a void __init instead?
>
You could make this declaration in .h file, e.g.
#ifdef ...
extern void mxm_8x10_mmc_init(void);
#else
static inline void mxm_8x10_mmc_init(void) {}
#endif
which will be optimized away by the compiler. Having a null global
function isn't very interesting.
>>> +inline mxm_8x10_nand_init(void)
>>> +{
>>> +}
>>
>> and it should return void.
>
> Agreed. This one must have just slipped by... Too much coffee, not enough
> sleep :)
>
> Thanks,
> Hennie
>
More information about the linux-arm-kernel
mailing list