>>not omap-specific. How about USB: instead ?

[Maulik] Yes this can go through linux-usb.

> +#if defined(CONFIG_USB_NOP_XCEIV)
>  /* sometimes transceivers are accessed only through e.g. ULPI */
>  extern void usb_nop_xceiv_register(void);
>  extern void usb_nop_xceiv_unregister(void);
> +#else
> +extern inline void usb_nop_xceiv_register()
> +{
> +}
> +
> +extern inline void usb_nop_xceiv_unregister()

>>I hope these are copy&paste error

[Maulik] Nope. When 'extern' is dropped I get the following error while
compiling when CONFIG_USB_NOP_XCEIV is NOT defined. 

arch/arm/plat-omap/built-in.o: In function `usb_nop_xceiv_unregister':
/share/maulik/felipe_musb/include/linux/usb/otg.h:123: multiple definition
of `usb_nop_xceiv_unregister'
arch/arm/mach-omap2/built-in.o:/share/maulik/felipe_musb/include/linux/usb/o
tg.h:123: first defined here
arch/arm/plat-omap/built-in.o: In function `usb_nop_xceiv_register':
/share/maulik/felipe_musb/include/linux/usb/otg.h:119: multiple definition
of `usb_nop_xceiv_register'
arch/arm/mach-omap2/built-in.o:/share/maulik/felipe_musb/include/linux/usb/o
tg.h:119: first defined here
make: *** [vmlinux.o] Error 1

I referred some kernel code which uses extern inline. 

Any suggestions?

Regards,
Maulik

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to