linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [gpio:devel-gpio-driver-isolation 51/59] sound/soc/codecs/ak5386.c:116:3: error: implicit declaration of function 'gpio_set_value'; did you mean 'pmd_set_huge'?
@ 2019-08-30 16:53 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-08-30 16:53 UTC (permalink / raw)
  To: Linus Walleij; +Cc: kbuild-all, linux-gpio

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 4254 bytes --]

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel-gpio-driver-isolation
head:   913bead035f39e059ce462d3bbd137d2a223bb0c
commit: 2e7bfc286b22879e076690e121e967a89cf48ae6 [51/59] gpio: Drop driver header from legacy header include
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
        git checkout 2e7bfc286b22879e076690e121e967a89cf48ae6
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sound/soc/codecs/ak5386.c: In function 'ak5386_hw_params':
   sound/soc/codecs/ak5386.c:115:6: error: implicit declaration of function 'gpio_is_valid'; did you mean 'uuid_is_valid'? [-Werror=implicit-function-declaration]
     if (gpio_is_valid(priv->reset_gpio))
         ^~~~~~~~~~~~~
         uuid_is_valid
>> sound/soc/codecs/ak5386.c:116:3: error: implicit declaration of function 'gpio_set_value'; did you mean 'pmd_set_huge'? [-Werror=implicit-function-declaration]
      gpio_set_value(priv->reset_gpio, 1);
      ^~~~~~~~~~~~~~
      pmd_set_huge
   sound/soc/codecs/ak5386.c: In function 'ak5386_probe':
   sound/soc/codecs/ak5386.c:188:7: error: implicit declaration of function 'devm_gpio_request_one'; did you mean 'devm_request_irq'? [-Werror=implicit-function-declaration]
      if (devm_gpio_request_one(dev, priv->reset_gpio,
          ^~~~~~~~~~~~~~~~~~~~~
          devm_request_irq
   sound/soc/codecs/ak5386.c:189:8: error: 'GPIOF_OUT_INIT_LOW' undeclared (first use in this function)
           GPIOF_OUT_INIT_LOW,
           ^~~~~~~~~~~~~~~~~~
   sound/soc/codecs/ak5386.c:189:8: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors

vim +116 sound/soc/codecs/ak5386.c

cc289be8c91300 Daniel Mack       2013-03-08   97  
cc289be8c91300 Daniel Mack       2013-03-08   98  static int ak5386_hw_params(struct snd_pcm_substream *substream,
cc289be8c91300 Daniel Mack       2013-03-08   99  			    struct snd_pcm_hw_params *params,
cc289be8c91300 Daniel Mack       2013-03-08  100  			    struct snd_soc_dai *dai)
cc289be8c91300 Daniel Mack       2013-03-08  101  {
12132de654bbcd Kuninori Morimoto 2018-01-29  102  	struct snd_soc_component *component = dai->component;
12132de654bbcd Kuninori Morimoto 2018-01-29  103  	struct ak5386_priv *priv = snd_soc_component_get_drvdata(component);
cc289be8c91300 Daniel Mack       2013-03-08  104  
cc289be8c91300 Daniel Mack       2013-03-08  105  	/*
cc289be8c91300 Daniel Mack       2013-03-08  106  	 * From the datasheet:
cc289be8c91300 Daniel Mack       2013-03-08  107  	 *
cc289be8c91300 Daniel Mack       2013-03-08  108  	 * All external clocks (MCLK, SCLK and LRCK) must be present unless
cc289be8c91300 Daniel Mack       2013-03-08  109  	 * PDN pin = “L”. If these clocks are not provided, the AK5386 may
cc289be8c91300 Daniel Mack       2013-03-08  110  	 * draw excess current due to its use of internal dynamically
cc289be8c91300 Daniel Mack       2013-03-08  111  	 * refreshed logic. If the external clocks are not present, place
cc289be8c91300 Daniel Mack       2013-03-08  112  	 * the AK5386 in power-down mode (PDN pin = “L”).
cc289be8c91300 Daniel Mack       2013-03-08  113  	 */
cc289be8c91300 Daniel Mack       2013-03-08  114  
cc289be8c91300 Daniel Mack       2013-03-08 @115  	if (gpio_is_valid(priv->reset_gpio))
cc289be8c91300 Daniel Mack       2013-03-08 @116  		gpio_set_value(priv->reset_gpio, 1);
cc289be8c91300 Daniel Mack       2013-03-08  117  
cc289be8c91300 Daniel Mack       2013-03-08  118  	return 0;
cc289be8c91300 Daniel Mack       2013-03-08  119  }
cc289be8c91300 Daniel Mack       2013-03-08  120  

:::::: The code at line 116 was first introduced by commit
:::::: cc289be8c913006a43275dfd8ed4ac56b43140a8 ASoC: Add codec driver for AK5386

:::::: TO: Daniel Mack <zonque@gmail.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69434 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-30 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-30 16:53 [gpio:devel-gpio-driver-isolation 51/59] sound/soc/codecs/ak5386.c:116:3: error: implicit declaration of function 'gpio_set_value'; did you mean 'pmd_set_huge'? kbuild 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).