[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'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux