In file included from drivers/usb/gadget/ether.c:106:0:
drivers/usb/gadget/f_rndis.c:70:41: error: expected ')' before 'uint'
module_param(rndis_dl_max_pkt_per_xfer, uint, S_IRUGO | S_IWUSR);
^~~~
drivers/usb/gadget/f_rndis.c:72:2: error: expected ')' before string constant
"Maximum packets per transfer for DL aggregation");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/f_rndis.c:75:41: error: expected ')' before 'uint'
module_param(rndis_ul_max_pkt_per_xfer, uint, S_IRUGO | S_IWUSR);
^~~~
drivers/usb/gadget/f_rndis.c:77:8: error: expected ')' before string constant
"Maximum packets per transfer for UL aggregation");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:5:0,
from include/linux/kernel.h:13,
from drivers/usb/gadget/ether.c:16:
include/linux/init.h:299:27: error: redefinition of '__inittest'
static inline initcall_t __inittest(void) \
^
drivers/usb/gadget/ether.c:368:1: note: in expansion of macro 'module_init'
module_init(init);
^~~~~~~~~~~
include/linux/init.h:299:27: note: previous definition of '__inittest' was here
static inline initcall_t __inittest(void) \
^
drivers/usb/gadget/u_ether.c:1179:1: note: in expansion of macro 'module_init'
module_init(gether_init);
^~~~~~~~~~~
include/linux/init.h:301:6: error: redefinition of 'init_module'
int init_module(void) __attribute__((alias(#initfn)));
^
drivers/usb/gadget/ether.c:368:1: note: in expansion of macro 'module_init'
module_init(init);
^~~~~~~~~~~
include/linux/init.h:301:6: note: previous definition of 'init_module' was here
int init_module(void) __attribute__((alias(#initfn)));
^
drivers/usb/gadget/u_ether.c:1179:1: note: in expansion of macro 'module_init'
module_init(gether_init);
^~~~~~~~~~~
include/linux/init.h:305:27: error: redefinition of '__exittest'
static inline exitcall_t __exittest(void) \
^
drivers/usb/gadget/ether.c:374:1: note: in expansion of macro 'module_exit'
module_exit(cleanup);
^~~~~~~~~~~
include/linux/init.h:305:27: note: previous definition of '__exittest' was here
static inline exitcall_t __exittest(void) \
^
drivers/usb/gadget/u_ether.c:1186:1: note: in expansion of macro 'module_exit'
module_exit(gether_exit);
^~~~~~~~~~~
include/linux/init.h:307:7: error: redefinition of 'cleanup_module'
void cleanup_module(void) __attribute__((alias(#exitfn)));
^
drivers/usb/gadget/ether.c:374:1: note: in expansion of macro 'module_exit'
module_exit(cleanup);
^~~~~~~~~~~
include/linux/init.h:307:7: note: previous definition of 'cleanup_module' was here
void cleanup_module(void) __attribute__((alias(#exitfn)));
^
drivers/usb/gadget/u_ether.c:1186:1: note: in expansion of macro 'module_exit'
module_exit(gether_exit);
^~~~~~~~~~~
scripts/Makefile.build:308: recipe for target 'drivers/usb/gadget/ether.o' failed
请问一下,有没有大佬知道这是什么错误吗,我在内核的usb选项已选择【*】 RNDIS support编译就报上面的错误
离线