* [broonie-ci:file8krnAQ 7/7] drivers/regulator/s5m8767.c:492:10: error: call to undeclared function 'of_get_named_gpio'; ISO C99 and later do not support implicit function declarations
@ 2023-03-21 13:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-21 13:24 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: llvm, oe-kbuild-all, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git file8krnAQ
head: d962f3f8e4da347cc9fcda7b887ff7a8f23aad2f
commit: d962f3f8e4da347cc9fcda7b887ff7a8f23aad2f [7/7] regulator: s5m8767: Replace of_gpio.h with what indeed is used
config: riscv-randconfig-c006-20230319 (https://download.01.org/0day-ci/archive/20230321/202303212139.VjsFByow-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git/commit/?id=d962f3f8e4da347cc9fcda7b887ff7a8f23aad2f
git remote add broonie-ci https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git
git fetch --no-tags broonie-ci file8krnAQ
git checkout d962f3f8e4da347cc9fcda7b887ff7a8f23aad2f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/regulator/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303212139.VjsFByow-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/regulator/s5m8767.c:492:10: error: call to undeclared function 'of_get_named_gpio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
gpio = of_get_named_gpio(pmic_np,
^
drivers/regulator/s5m8767.c:510:10: error: call to undeclared function 'of_get_named_gpio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
gpio = of_get_named_gpio(pmic_np,
^
2 errors generated.
vim +/of_get_named_gpio +492 drivers/regulator/s5m8767.c
ee1e0994ab1bd30 Krzysztof Kozlowski 2014-01-24 482
ee1e0994ab1bd30 Krzysztof Kozlowski 2014-01-24 483
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 484 #ifdef CONFIG_OF
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 485 static int s5m8767_pmic_dt_parse_dvs_gpio(struct sec_pmic_dev *iodev,
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 486 struct sec_platform_data *pdata,
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 487 struct device_node *pmic_np)
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 488 {
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 489 int i, gpio;
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 490
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 491 for (i = 0; i < 3; i++) {
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 @492 gpio = of_get_named_gpio(pmic_np,
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 493 "s5m8767,pmic-buck-dvs-gpios", i);
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 494 if (!gpio_is_valid(gpio)) {
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 495 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio);
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 496 return -EINVAL;
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 497 }
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 498 pdata->buck_gpios[i] = gpio;
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 499 }
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 500 return 0;
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 501 }
26aec009f6b61c0 Amit Daniel Kachhap 2013-02-03 502
:::::: The code at line 492 was first introduced by commit
:::::: 26aec009f6b61c077c6de1a96cca7a5132851dbe regulator: add device tree support for s5m8767
:::::: TO: Amit Daniel Kachhap <amit.daniel@samsung.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-21 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 13:24 [broonie-ci:file8krnAQ 7/7] drivers/regulator/s5m8767.c:492:10: error: call to undeclared function 'of_get_named_gpio'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).