[gpio:gpio-descriptors-mmc-cd-wp 5/10] arch/sh/boards/mach-ecovec24/setup.c:1473:26: error: 'sdhi1_gpio_table' undeclared; did you mean 'mmc_spi_gpio_table'?

[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-mmc-cd-wp
head:   543d66f5f2906f1fe93f979e5067ff3a7ea8cc96
commit: 0311feebe285bbb64e08e75362bc55ebf12bb3b6 [5/10] mmc: host: tmio: Use GPIO descriptors
config: sh-ecovec24-romimage_defconfig (attached as .config)
compiler: sh4-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 0311feebe285bbb64e08e75362bc55ebf12bb3b6
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   arch/sh/boards/mach-ecovec24/setup.c:808:34: error: redefinition of 'tw9910_gpios'
    static struct gpiod_lookup_table tw9910_gpios = {
                                     ^~~~~~~~~~~~
   arch/sh/boards/mach-ecovec24/setup.c:473:34: note: previous definition of 'tw9910_gpios' was here
    static struct gpiod_lookup_table tw9910_gpios = {
                                     ^~~~~~~~~~~~
   arch/sh/boards/mach-ecovec24/setup.c: In function 'arch_setup':
>> arch/sh/boards/mach-ecovec24/setup.c:1473:26: error: 'sdhi1_gpio_table' undeclared (first use in this function); did you mean 'mmc_spi_gpio_table'?
     gpiod_add_lookup_table(&sdhi1_gpio_table);
                             ^~~~~~~~~~~~~~~~
                             mmc_spi_gpio_table
   arch/sh/boards/mach-ecovec24/setup.c:1473:26: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   arch/sh/boards/mach-ecovec24/setup.c:473:34: warning: 'tw9910_gpios' defined but not used [-Wunused-variable]
    static struct gpiod_lookup_table tw9910_gpios = {
                                     ^~~~~~~~~~~~

vim +1473 arch/sh/boards/mach-ecovec24/setup.c

  1447	
  1448		/* Initialize CEU platform devices separately to map memory first */
  1449		device_initialize(&ecovec_ceu_devices[0]->dev);
  1450		arch_setup_pdev_archdata(ecovec_ceu_devices[0]);
  1451		dma_declare_coherent_memory(&ecovec_ceu_devices[0]->dev,
  1452					    ceu0_dma_membase, ceu0_dma_membase,
  1453					    ceu0_dma_membase +
  1454					    CEU_BUFFER_MEMORY_SIZE - 1,
  1455					    DMA_MEMORY_EXCLUSIVE);
  1456		platform_device_add(ecovec_ceu_devices[0]);
  1457	
  1458		device_initialize(&ecovec_ceu_devices[1]->dev);
  1459		arch_setup_pdev_archdata(ecovec_ceu_devices[1]);
  1460		dma_declare_coherent_memory(&ecovec_ceu_devices[1]->dev,
  1461					    ceu1_dma_membase, ceu1_dma_membase,
  1462					    ceu1_dma_membase +
  1463					    CEU_BUFFER_MEMORY_SIZE - 1,
  1464					    DMA_MEMORY_EXCLUSIVE);
  1465		platform_device_add(ecovec_ceu_devices[1]);
  1466	
  1467		gpiod_add_lookup_table(&cn12_power_gpiod_table);
  1468	#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
  1469		gpiod_add_lookup_table(&sdhi0_power_gpiod_table);
  1470		gpiod_add_lookup_table(&sdhi0_gpio_table);
  1471	#endif
  1472	#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
> 1473		gpiod_add_lookup_table(&sdhi1_gpio_table);
  1474	#endif
  1475	
  1476		return platform_add_devices(ecovec_devices,
  1477					    ARRAY_SIZE(ecovec_devices));
  1478	}
  1479	arch_initcall(arch_setup);
  1480	

---
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