[gpio:gpio-descriptors-ata 3/3] arch/mips/rb532/devices.c:131:34: error: 'cf_slot0_gpio_table' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-ata
head:   a5ef334a1f3639319e17352b6da788ad44d9a071
commit: a5ef334a1f3639319e17352b6da788ad44d9a071 [3/3] ata: rb532_cf: Convert to use GPIO descriptors
config: mips-rb532_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout a5ef334a1f3639319e17352b6da788ad44d9a071
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> arch/mips/rb532/devices.c:131:34: error: 'cf_slot0_gpio_table' defined but not used [-Werror=unused-variable]
    static struct gpiod_lookup_table cf_slot0_gpio_table = {
                                     ^~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/cf_slot0_gpio_table +131 arch/mips/rb532/devices.c

   130	
 > 131	static struct gpiod_lookup_table cf_slot0_gpio_table = {
   132		.dev_id = "pata-rb532-cf",
   133		.table = {
   134			GPIO_LOOKUP("gpio0", CF_GPIO_NUM,
   135				    NULL, GPIO_ACTIVE_HIGH),
   136			{ },
   137		},
   138	};
   139	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux