Hi David, [auto build test ERROR on chanwoo-extcon/extcon-next] [also build test ERROR on v4.9 next-20161216] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/extcon-3gpio-add-driver-for-USB-OTG-port-controlled-by-3-GPIOs/20161219-082834 base: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git extcon-next config: blackfin-allmodconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=blackfin All error/warnings (new ones prefixed by >>): >> drivers/extcon/extcon-3gpio_otg.c:185:1: warning: data definition has no >> type or storage class MODULE_DEVICE_TABLE(acpi, usb_otg_acpi_match); ^~~~~~~~~~~~~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:185:1: error: type defaults to 'int' in >> declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] >> drivers/extcon/extcon-3gpio_otg.c:185:1: warning: parameter names (without >> types) in function declaration In file included from include/linux/acpi.h:27:0, from drivers/extcon/extcon-3gpio_otg.c:21: include/linux/device.h:1353:1: warning: data definition has no type or storage class module_init(__driver##_init); \ ^ >> include/linux/platform_device.h:228:2: note: in expansion of macro >> 'module_driver' module_driver(__platform_driver, platform_driver_register, \ ^~~~~~~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:197:1: note: in expansion of macro >> 'module_platform_driver' module_platform_driver(usb_otg_driver); ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/device.h:1353:1: error: type defaults to 'int' in declaration >> of 'module_init' [-Werror=implicit-int] module_init(__driver##_init); \ ^ >> include/linux/platform_device.h:228:2: note: in expansion of macro >> 'module_driver' module_driver(__platform_driver, platform_driver_register, \ ^~~~~~~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:197:1: note: in expansion of macro >> 'module_platform_driver' module_platform_driver(usb_otg_driver); ^~~~~~~~~~~~~~~~~~~~~~ drivers/extcon/extcon-3gpio_otg.c:197:1: warning: parameter names (without types) in function declaration In file included from include/linux/acpi.h:27:0, from drivers/extcon/extcon-3gpio_otg.c:21: include/linux/device.h:1358:1: warning: data definition has no type or storage class module_exit(__driver##_exit); ^ >> include/linux/platform_device.h:228:2: note: in expansion of macro >> 'module_driver' module_driver(__platform_driver, platform_driver_register, \ ^~~~~~~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:197:1: note: in expansion of macro >> 'module_platform_driver' module_platform_driver(usb_otg_driver); ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/device.h:1358:1: error: type defaults to 'int' in declaration >> of 'module_exit' [-Werror=implicit-int] module_exit(__driver##_exit); ^ >> include/linux/platform_device.h:228:2: note: in expansion of macro >> 'module_driver' module_driver(__platform_driver, platform_driver_register, \ ^~~~~~~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:197:1: note: in expansion of macro >> 'module_platform_driver' module_platform_driver(usb_otg_driver); ^~~~~~~~~~~~~~~~~~~~~~ drivers/extcon/extcon-3gpio_otg.c:197:1: warning: parameter names (without types) in function declaration >> drivers/extcon/extcon-3gpio_otg.c:199:15: error: expected declaration >> specifiers or '...' before string constant MODULE_AUTHOR("Hans de Goede <hdego...@redhat.com>"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/extcon/extcon-3gpio_otg.c:200:20: error: expected declaration specifiers or '...' before string constant MODULE_DESCRIPTION("3 GPIO USB OTG extcon driver"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/extcon/extcon-3gpio_otg.c:201:16: error: expected declaration specifiers or '...' before string constant MODULE_LICENSE("GPL"); ^~~~~ In file included from include/linux/acpi.h:27:0, from drivers/extcon/extcon-3gpio_otg.c:21: drivers/extcon/extcon-3gpio_otg.c:197:24: warning: 'usb_otg_driver_exit' defined but not used [-Wunused-function] module_platform_driver(usb_otg_driver); ^ include/linux/device.h:1354:20: note: in definition of macro 'module_driver' static void __exit __driver##_exit(void) \ ^~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:197:1: note: in expansion of macro >> 'module_platform_driver' module_platform_driver(usb_otg_driver); ^~~~~~~~~~~~~~~~~~~~~~ drivers/extcon/extcon-3gpio_otg.c:197:24: warning: 'usb_otg_driver_init' defined but not used [-Wunused-function] module_platform_driver(usb_otg_driver); ^ include/linux/device.h:1349:19: note: in definition of macro 'module_driver' static int __init __driver##_init(void) \ ^~~~~~~~ >> drivers/extcon/extcon-3gpio_otg.c:197:1: note: in expansion of macro >> 'module_platform_driver' module_platform_driver(usb_otg_driver); ^~~~~~~~~~~~~~~~~~~~~~ drivers/extcon/extcon-3gpio_otg.c:181:30: warning: 'usb_otg_acpi_match' defined but not used [-Wunused-variable] static struct acpi_device_id usb_otg_acpi_match[] = { ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +185 drivers/extcon/extcon-3gpio_otg.c 179 } 180 181 static struct acpi_device_id usb_otg_acpi_match[] = { 182 { "INT3496" }, 183 { } 184 }; > 185 MODULE_DEVICE_TABLE(acpi, usb_otg_acpi_match); 186 187 static struct platform_driver usb_otg_driver = { 188 .driver = { 189 .name = DRV_NAME, 190 .owner = THIS_MODULE, 191 .acpi_match_table = ACPI_PTR(usb_otg_acpi_match), 192 }, 193 .probe = usb_otg_probe, 194 .remove = usb_otg_remove, 195 }; 196 > 197 module_platform_driver(usb_otg_driver); 198 > 199 MODULE_AUTHOR("Hans de Goede <hdego...@redhat.com>"); 200 MODULE_DESCRIPTION("3 GPIO USB OTG extcon driver"); 201 MODULE_LICENSE("GPL"); --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip