On Mon, Apr 23, 2012 at 01:36:20PM +0200, Andrzej Pietrasiewicz wrote: > From: Mike Lockwood <lockwood@xxxxxxxxxxx> > > This is needed to avoid name collisions on SoCs that have both usb > gadget and usb host, where usb0 may be the rndis interface or a usb > ethernet adapter. > > Signed-off-by: Mike Lockwood <lockwood@xxxxxxxxxxx> > Signed-off-by: Benoit Goby <benoit@xxxxxxxxxxx> > [make gether_setup a static inline function] > Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx> > Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> breaks compilation: $ make -j8 drivers/usb/gadget/ > /dev/null In file included from drivers/usb/gadget/ether.c:27:0: drivers/usb/gadget/u_ether.h: In function ‘gether_setup’: drivers/usb/gadget/u_ether.h:88:2: error: implicit declaration of function ‘gether_setup_name’ [-Werror=implicit-function-declaration] In file included from drivers/usb/gadget/cdc2.c:17:0: drivers/usb/gadget/u_ether.h: In function ‘gether_setup’: drivers/usb/gadget/u_ether.h:88:2: error: implicit declaration of function ‘gether_setup_name’ [-Werror=implicit-function-declaration] In file included from drivers/usb/gadget/ncm.c:26:0: drivers/usb/gadget/u_ether.h: In function ‘gether_setup’: drivers/usb/gadget/u_ether.h:88:2: error: implicit declaration of function ‘gether_setup_name’ [-Werror=implicit-function-declaration] In file included from drivers/usb/gadget/nokia.c:23:0: drivers/usb/gadget/u_ether.h: In function ‘gether_setup’: drivers/usb/gadget/u_ether.h:88:2: error: implicit declaration of function ‘gether_setup_name’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[1]: *** [drivers/usb/gadget/cdc2.o] Error 1 make[1]: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors make[1]: *** [drivers/usb/gadget/ether.o] Error 1 In file included from drivers/usb/gadget/f_ecm.c:20:0, from drivers/usb/gadget/g_ffs.c:39: drivers/usb/gadget/u_ether.h: In function ‘gether_setup’: drivers/usb/gadget/u_ether.h:88:2: error: implicit declaration of function ‘gether_setup_name’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[1]: *** [drivers/usb/gadget/ncm.o] Error 1 In file included from drivers/usb/gadget/f_ecm.c:20:0, from drivers/usb/gadget/multi.c:56: drivers/usb/gadget/u_ether.h: In function ‘gether_setup’: drivers/usb/gadget/u_ether.h:88:2: error: implicit declaration of function ‘gether_setup_name’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[1]: *** [drivers/usb/gadget/nokia.o] Error 1 cc1: some warnings being treated as errors make[1]: *** [drivers/usb/gadget/g_ffs.o] Error 1 cc1: some warnings being treated as errors make[1]: *** [drivers/usb/gadget/multi.o] Error 1 make: *** [drivers/usb/gadget/] Error 2 -- balbi
Attachment:
signature.asc
Description: Digital signature