All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	kernel test robot <lkp@intel.com>,
	kbuild-all@lists.01.org, Bjorn Helgaas <helgaas@kernel.org>,
	linux-pci@vger.kernel.org,
	Lorenzo Pieralisi <lpieralisi@kernel.org>
Subject: Re: [lpieralisi-pci:pci/dwc 3/3] drivers/pci/controller/dwc/pcie-kirin.c:373:15: error: implicit declaration of function 'gpiod_count'
Date: Wed, 14 Sep 2022 03:05:24 -0700	[thread overview]
Message-ID: <YyGnZCscvI4eoePt@google.com> (raw)
In-Reply-To: <CACRpkdYfLNr04Y_YUFeuerGokxB0GCqQeEQEgQB=OR3k8N9Jbw@mail.gmail.com>

On Wed, Sep 14, 2022 at 11:42:29AM +0200, Linus Walleij wrote:
> On Wed, Sep 14, 2022 at 11:38 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Sep 13, 2022 at 02:45:12AM +0800, kernel test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git pci/dwc
> > > head:   2023f9c9190e657b9853a442899a52b14253aea3
> > > commit: 2023f9c9190e657b9853a442899a52b14253aea3 [3/3] PCI: dwc: Replace of_gpio_named_count() by gpiod_count()
> > > config: xtensa-randconfig-r023-20220911 (https://download.01.org/0day-ci/archive/20220913/202209130205.CPp5dG1q-lkp@intel.com/config)
> > > compiler: xtensa-linux-gcc (GCC) 12.1.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/lpieralisi/pci.git/commit/?id=2023f9c9190e657b9853a442899a52b14253aea3
> > >         git remote add lpieralisi-pci https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git
> > >         git fetch --no-tags lpieralisi-pci pci/dwc
> > >         git checkout 2023f9c9190e657b9853a442899a52b14253aea3
> > >         # save the config file
> > >         mkdir build_dir && cp config build_dir/.config
> > >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/pci/controller/dwc/
> > >
> > > If you fix the issue, kindly add following tag where applicable
> > > Reported-by: kernel test robot <lkp@intel.com>
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > >    drivers/pci/controller/dwc/pcie-kirin.c: In function 'kirin_pcie_get_gpio_enable':
> > > >> drivers/pci/controller/dwc/pcie-kirin.c:373:15: error: implicit declaration of function 'gpiod_count' [-Werror=implicit-function-declaration]
> > >      373 |         ret = gpiod_count(dev, "hisilicon,clken");
> > >          |               ^~~~~~~~~~~
> > >    cc1: some warnings being treated as errors
> >
> >
> > It's only possible if we miss to include gpio/consumer.h which is the case here
> > (at least on some architectures).
> >
> > Lorenzo, what do you want me to do? I can add the missed include, but looking
> > at the code it needs conversion to GPIO descriptors altogether.
> >
> > Linus, don't you have a patch for this driver already? (I don't remember
> > if I have seen a branch in your tree regarding this long-standing conversion
> > to GPIO descriptors all over the kernel.)
> 
> Not me, by Dmitry T sent some really nice PCI host GPIOD conversions
> recently, not this one though.

No, I do not have any outstanding changes for this driver. Maybe Andy
can finish the conversion to gpiod?

Thanks.

-- 
Dmitry

WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: kbuild-all@lists.01.org
Subject: Re: [lpieralisi-pci:pci/dwc 3/3] drivers/pci/controller/dwc/pcie-kirin.c:373:15: error: implicit declaration of function 'gpiod_count'
Date: Wed, 14 Sep 2022 03:05:24 -0700	[thread overview]
Message-ID: <YyGnZCscvI4eoePt@google.com> (raw)
In-Reply-To: <CACRpkdYfLNr04Y_YUFeuerGokxB0GCqQeEQEgQB=OR3k8N9Jbw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2858 bytes --]

On Wed, Sep 14, 2022 at 11:42:29AM +0200, Linus Walleij wrote:
> On Wed, Sep 14, 2022 at 11:38 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Sep 13, 2022 at 02:45:12AM +0800, kernel test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git pci/dwc
> > > head:   2023f9c9190e657b9853a442899a52b14253aea3
> > > commit: 2023f9c9190e657b9853a442899a52b14253aea3 [3/3] PCI: dwc: Replace of_gpio_named_count() by gpiod_count()
> > > config: xtensa-randconfig-r023-20220911 (https://download.01.org/0day-ci/archive/20220913/202209130205.CPp5dG1q-lkp(a)intel.com/config)
> > > compiler: xtensa-linux-gcc (GCC) 12.1.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/lpieralisi/pci.git/commit/?id=2023f9c9190e657b9853a442899a52b14253aea3
> > >         git remote add lpieralisi-pci https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git
> > >         git fetch --no-tags lpieralisi-pci pci/dwc
> > >         git checkout 2023f9c9190e657b9853a442899a52b14253aea3
> > >         # save the config file
> > >         mkdir build_dir && cp config build_dir/.config
> > >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/pci/controller/dwc/
> > >
> > > If you fix the issue, kindly add following tag where applicable
> > > Reported-by: kernel test robot <lkp@intel.com>
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > >    drivers/pci/controller/dwc/pcie-kirin.c: In function 'kirin_pcie_get_gpio_enable':
> > > >> drivers/pci/controller/dwc/pcie-kirin.c:373:15: error: implicit declaration of function 'gpiod_count' [-Werror=implicit-function-declaration]
> > >      373 |         ret = gpiod_count(dev, "hisilicon,clken");
> > >          |               ^~~~~~~~~~~
> > >    cc1: some warnings being treated as errors
> >
> >
> > It's only possible if we miss to include gpio/consumer.h which is the case here
> > (at least on some architectures).
> >
> > Lorenzo, what do you want me to do? I can add the missed include, but looking
> > at the code it needs conversion to GPIO descriptors altogether.
> >
> > Linus, don't you have a patch for this driver already? (I don't remember
> > if I have seen a branch in your tree regarding this long-standing conversion
> > to GPIO descriptors all over the kernel.)
> 
> Not me, by Dmitry T sent some really nice PCI host GPIOD conversions
> recently, not this one though.

No, I do not have any outstanding changes for this driver. Maybe Andy
can finish the conversion to gpiod?

Thanks.

-- 
Dmitry

  reply	other threads:[~2022-09-14 10:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12 18:45 [lpieralisi-pci:pci/dwc 3/3] drivers/pci/controller/dwc/pcie-kirin.c:373:15: error: implicit declaration of function 'gpiod_count' kernel test robot
2022-09-14  9:36 ` Andy Shevchenko
2022-09-14  9:42   ` Linus Walleij
2022-09-14  9:42     ` Linus Walleij
2022-09-14 10:05     ` Dmitry Torokhov [this message]
2022-09-14 10:05       ` Dmitry Torokhov
2022-09-14 10:14       ` Andy Shevchenko
2022-09-14 15:01         ` Lorenzo Pieralisi
2022-09-14 15:01           ` Lorenzo Pieralisi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YyGnZCscvI4eoePt@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=helgaas@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=lpieralisi@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.