Skip to contentSkip to conversation

ARM: OMAP: Add support for USB on OMAP34XX

PATCH RESEND Gadiyar, Anand 1 participant 1 message Dec 14, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 13 lines
Quoted 1 line

Can you clarify this a little? Do you mean declare it in the .h as:

extern void sdp3430_usb_init(void);

Yes. Removing __init and friends from header files is actually one of Kernel Janitors TODO. We don't need to redefine __init and friends on function prototypes. GCC will always use the last one. Redefining in header
files can lead to errors like declaring the function as __init in the c
file and __initdata in the header file and we can't be sure about which one
GCC will use (not that true).

Quoted 3 lines

The best here and for any other function, is leaving section defines to C
files and avoid indirect including of linux/init.h

Ok. I didn't know this. Thanks for the info. One more piece of learning for the day!

Regards,
Anand