Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1649065

Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio
Date 2017-05-24 04:30 +0200
Message-ID <tKudI-4fy-5@gated-at.bofh.it> (permalink)
References <tK9iV-6tR-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Chris,

[auto build test ERROR on spi/for-next]
[also build test ERROR on v4.12-rc2 next-20170523]
[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/Chris-Packham/spi-orion-Handle-GPIO-chip-selects/20170524-074032
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc 

All error/warnings (new ones prefixed by >>):

   drivers/spi/spi.c: In function 'spi_set_cs':
>> drivers/spi/spi.c:728:28: error: implicit declaration of function 'gpio_to_desc' [-Werror=implicit-function-declaration]
      struct gpio_desc *gpio = gpio_to_desc(spi->cs_gpio);
                               ^~~~~~~~~~~~
>> drivers/spi/spi.c:728:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
>> drivers/spi/spi.c:731:4: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration]
       gpiod_set_value(gpio, !enable);
       ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/gpio_to_desc +728 drivers/spi/spi.c

   722	static void spi_set_cs(struct spi_device *spi, bool enable)
   723	{
   724		if (spi->mode & SPI_CS_HIGH)
   725			enable = !enable;
   726	
   727		if (gpio_is_valid(spi->cs_gpio)) {
 > 728			struct gpio_desc *gpio = gpio_to_desc(spi->cs_gpio);
   729	
   730			if (gpio)
 > 731				gpiod_set_value(gpio, !enable);
   732			/* Some SPI masters need both GPIO CS & slave_select */
   733			if ((spi->master->flags & SPI_MASTER_GPIO_SS) &&
   734			    spi->master->set_cs)

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

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] spi: use gpio_desc instead of numeric gpio Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-05-23 06:10 +0200
  Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-23 20:30 +0200
    Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-05-23 22:50 +0200
      Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-05-24 07:50 +0200
        Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio Mark Brown <broonie@kernel.org> - 2017-05-24 19:10 +0200
    Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio Mark Brown <broonie@kernel.org> - 2017-05-24 19:10 +0200
  Re: [PATCH 2/2] spi: use gpio_desc instead of numeric gpio kbuild test robot <lkp@intel.com> - 2017-05-24 04:30 +0200

csiph-web