[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <05df5b18-3cae-9f43-4209-81264c0225af@infradead.org>
Date: Sun, 17 Apr 2022 14:06:24 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: kernel test robot <lkp@...el.com>, Mark Brown <broonie@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Ricard Wanderlof <ricardw@...s.com>
Subject: Re: sound/soc/codecs/tlv320adc3xxx.c:1209:28: error: implicit
declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'?
On 4/17/22 12:53, kernel test robot wrote:
> Hi Mark,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: a2c29ccd9477861b16ddc02c411a6c9665250558
> commit: 44bd27c42a1c9a00f1fbcb58301a7f3e6f5cdd0f ASoC: simple-amplifier: Remove spurious gpiolib select
> date: 10 weeks ago
> config: m68k-randconfig-c023-20220418 (https://download.01.org/0day-ci/archive/20220418/202204180359.PbjuGlvd-lkp@intel.com/config)
> compiler: m68k-linux-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/torvalds/linux.git/commit/?id=44bd27c42a1c9a00f1fbcb58301a7f3e6f5cdd0f
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 44bd27c42a1c9a00f1fbcb58301a7f3e6f5cdd0f
> # 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=m68k SHELL=/bin/bash sound/soc/codecs/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
>
> All errors (new ones prefixed by >>):
>
> sound/soc/codecs/tlv320adc3xxx.c: In function 'adc3xxx_i2c_probe':
>>> sound/soc/codecs/tlv320adc3xxx.c:1209:28: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'? [-Werror=implicit-function-declaration]
> 1209 | adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
> | ^~~~~~~~~~~~~~
> | devm_gpio_free
>>> sound/soc/codecs/tlv320adc3xxx.c:1209:57: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'?
> 1209 | adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
> | ^~~~~~~~~~~~~
> | GPIOF_INIT_LOW
> sound/soc/codecs/tlv320adc3xxx.c:1209:57: note: each undeclared identifier is reported only once for each function it appears in
>>> sound/soc/codecs/tlv320adc3xxx.c:1257:9: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
> 1257 | gpiod_set_value_cansleep(adc3xxx->rst_pin, 1);
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> | gpio_set_value_cansleep
> cc1: some warnings being treated as errors
>
Fix is here:
https://lore.kernel.org/lkml/20220409052120.3780-1-rdunlap@infradead.org/
--
~Randy
Powered by blists - more mailing lists