Hi Punit, [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20151106] [cannot apply to v4.3] url: https://github.com/0day-ci/linux/commits/Punit-Vara/Staging-wilc1000-Declare-wilc-in-init_wilc_driver-to-fix-build-error/20151107-060255 config: i386-allmodconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/staging/wilc1000/linux_wlan.c: In function 'init_wilc_driver': >> drivers/staging/wilc1000/linux_wlan.c:1794:15: warning: unused variable 'wilc' [-Wunused-variable] struct wilc *wilc; ^ vim +/wilc +1794 drivers/staging/wilc1000/linux_wlan.c 1778 #ifndef WILC_SDIO 1779 if (!linux_spi_init(&g_linux_wlan->wilc_spidev)) { 1780 PRINT_ER("Can't initialize SPI\n"); 1781 return -1; /* ERROR */ 1782 } 1783 g_linux_wlan->wilc_spidev = wilc_spi_dev; 1784 #else 1785 g_linux_wlan->wilc_sdio_func = local_sdio_func; 1786 #endif 1787 1788 return 0; 1789 } 1790 1791 /*The 1st function called after module inserted*/ 1792 static int __init init_wilc_driver(void) 1793 { > 1794 struct wilc *wilc; 1795 #ifdef WILC_SPI 1796 struct wilc *wilc; 1797 #endif 1798 1799 #if defined(WILC_DEBUGFS) 1800 if (wilc_debugfs_init() < 0) { 1801 PRINT_D(GENERIC_DBG, "fail to create debugfs for wilc driver\n"); 1802 return -1; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel