All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev, Mark Brown <broonie@kernel.org>
Subject: [broonie-ci:file8krnAQ 7/7] drivers/regulator/s5m8767.c:492:24: error: implicit declaration of function 'of_get_named_gpio'
Date: Mon, 20 Mar 2023 19:20:16 +0800	[thread overview]
Message-ID: <202303201907.dUAS50Cl-lkp@intel.com> (raw)

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: xtensa-randconfig-s031-20230319 (https://download.01.org/0day-ci/archive/20230320/202303201907.dUAS50Cl-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # 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=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=xtensa olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=xtensa 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/202303201907.dUAS50Cl-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/regulator/s5m8767.c: In function 's5m8767_pmic_dt_parse_dvs_gpio':
>> drivers/regulator/s5m8767.c:492:24: error: implicit declaration of function 'of_get_named_gpio' [-Werror=implicit-function-declaration]
     492 |                 gpio = of_get_named_gpio(pmic_np,
         |                        ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/of_get_named_gpio +492 drivers/regulator/s5m8767.c

ee1e0994ab1bd3 Krzysztof Kozlowski 2014-01-24  482  
ee1e0994ab1bd3 Krzysztof Kozlowski 2014-01-24  483  
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  484  #ifdef CONFIG_OF
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  485  static int s5m8767_pmic_dt_parse_dvs_gpio(struct sec_pmic_dev *iodev,
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  486  			struct sec_platform_data *pdata,
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  487  			struct device_node *pmic_np)
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  488  {
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  489  	int i, gpio;
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  490  
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  491  	for (i = 0; i < 3; i++) {
26aec009f6b61c Amit Daniel Kachhap 2013-02-03 @492  		gpio = of_get_named_gpio(pmic_np,
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  493  					"s5m8767,pmic-buck-dvs-gpios", i);
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  494  		if (!gpio_is_valid(gpio)) {
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  495  			dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio);
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  496  			return -EINVAL;
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  497  		}
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  498  		pdata->buck_gpios[i] = gpio;
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  499  	}
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  500  	return 0;
26aec009f6b61c Amit Daniel Kachhap 2013-02-03  501  }
26aec009f6b61c 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

                 reply	other threads:[~2023-03-20 11:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202303201907.dUAS50Cl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.