[linusw-gpio:gpio-descriptors-spi 10/10] drivers/spi/spi-st-ssc4.c:176:24: error: 'struct spi_device' has no member named 'cs_gpio'; did you mean 'cs_gpiod'?

[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-spi
head:   b91ec14d0a206a5f58d8df605e7b5fe31a62a7ea
commit: b91ec14d0a206a5f58d8df605e7b5fe31a62a7ea [10/10] spi: Retire legacy GPIO handling
config: arc-randconfig-r043-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241743.NUmtEx5k-lkp@xxxxxxxxx/config)
compiler: arc-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/commit/?id=b91ec14d0a206a5f58d8df605e7b5fe31a62a7ea
        git remote add linusw-gpio https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
        git fetch --no-tags linusw-gpio gpio-descriptors-spi
        git checkout b91ec14d0a206a5f58d8df605e7b5fe31a62a7ea
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/spi/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/spi/spi-st-ssc4.c: In function 'spi_st_cleanup':
>> drivers/spi/spi-st-ssc4.c:176:24: error: 'struct spi_device' has no member named 'cs_gpio'; did you mean 'cs_gpiod'?
     176 |         gpio_free(spi->cs_gpio);
         |                        ^~~~~~~
         |                        cs_gpiod
   drivers/spi/spi-st-ssc4.c: In function 'spi_st_setup':
   drivers/spi/spi-st-ssc4.c:186:23: error: 'struct spi_device' has no member named 'cs_gpio'; did you mean 'cs_gpiod'?
     186 |         int cs = spi->cs_gpio;
         |                       ^~~~~~~
         |                       cs_gpiod


vim +176 drivers/spi/spi-st-ssc4.c

9e862375c5420a Lee Jones 2014-12-09  173  
9e862375c5420a Lee Jones 2014-12-09  174  static void spi_st_cleanup(struct spi_device *spi)
9e862375c5420a Lee Jones 2014-12-09  175  {
42531686639d6a Axel Lin  2016-06-05 @176  	gpio_free(spi->cs_gpio);
9e862375c5420a Lee Jones 2014-12-09  177  }
9e862375c5420a Lee Jones 2014-12-09  178  

:::::: The code at line 176 was first introduced by commit
:::::: 42531686639d6a3fe49518f2baca3f7256708242 spi: st-ssc4: Fix misuse of devm_gpio_request/devm_gpio_free APIs

:::::: TO: Axel Lin <axel.lin@xxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx



[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