All of lore.kernel.org
 help / color / mirror / Atom feed
* sound/soc/samsung/midas_wm1811.c:205:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'?
@ 2021-04-23 22:40 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-23 22:40 UTC (permalink / raw)
  To: Simon Shields
  Cc: kbuild-all, linux-kernel, Mark Brown, Marek Szyprowski,
	Sylwester Nawrocki

[-- Attachment #1: Type: text/plain, Size: 3335 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6d1d45cb98347dbd101b378d11b5f0deb87b345d
commit: fd0ea9cd9698edd8e9dab7dfe86163d00897b000 ASoC: samsung: Add sound support for Midas boards
date:   9 months ago
config: alpha-randconfig-r011-20210423 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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=fd0ea9cd9698edd8e9dab7dfe86163d00897b000
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout fd0ea9cd9698edd8e9dab7dfe86163d00897b000
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=alpha 

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

All errors (new ones prefixed by >>):

   sound/soc/samsung/midas_wm1811.c: In function 'midas_fm_set':
>> sound/soc/samsung/midas_wm1811.c:205:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
     205 |   gpiod_set_value_cansleep(priv->gpio_fm_sel, 1);
         |   ^~~~~~~~~~~~~~~~~~~~~~~~
         |   gpio_set_value_cansleep
   sound/soc/samsung/midas_wm1811.c: In function 'midas_probe':
>> sound/soc/samsung/midas_wm1811.c:445:22: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_clk_get_optional'? [-Werror=implicit-function-declaration]
     445 |  priv->gpio_fm_sel = devm_gpiod_get_optional(dev, "fm-sel", GPIOD_OUT_HIGH);
         |                      ^~~~~~~~~~~~~~~~~~~~~~~
         |                      devm_clk_get_optional
>> sound/soc/samsung/midas_wm1811.c:445:61: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'?
     445 |  priv->gpio_fm_sel = devm_gpiod_get_optional(dev, "fm-sel", GPIOD_OUT_HIGH);
         |                                                             ^~~~~~~~~~~~~~
         |                                                             GPIOF_INIT_HIGH
   sound/soc/samsung/midas_wm1811.c:445:61: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +205 sound/soc/samsung/midas_wm1811.c

   193	
   194	static int midas_fm_set(struct snd_soc_dapm_widget *w,
   195				struct snd_kcontrol *kcontrol, int event)
   196	{
   197		struct snd_soc_card *card = w->dapm->card;
   198		struct midas_priv *priv = snd_soc_card_get_drvdata(card);
   199	
   200		if (!priv->gpio_fm_sel)
   201			return 0;
   202	
   203		switch (event) {
   204		case SND_SOC_DAPM_PRE_PMU:
 > 205			gpiod_set_value_cansleep(priv->gpio_fm_sel, 1);
   206			break;
   207		case SND_SOC_DAPM_POST_PMD:
   208			gpiod_set_value_cansleep(priv->gpio_fm_sel, 0);
   209			break;
   210		}
   211	
   212		return 0;
   213	}
   214	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* sound/soc/samsung/midas_wm1811.c:205:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'?
@ 2021-04-23 22:40 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-23 22:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3404 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6d1d45cb98347dbd101b378d11b5f0deb87b345d
commit: fd0ea9cd9698edd8e9dab7dfe86163d00897b000 ASoC: samsung: Add sound support for Midas boards
date:   9 months ago
config: alpha-randconfig-r011-20210423 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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=fd0ea9cd9698edd8e9dab7dfe86163d00897b000
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout fd0ea9cd9698edd8e9dab7dfe86163d00897b000
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=alpha 

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

All errors (new ones prefixed by >>):

   sound/soc/samsung/midas_wm1811.c: In function 'midas_fm_set':
>> sound/soc/samsung/midas_wm1811.c:205:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
     205 |   gpiod_set_value_cansleep(priv->gpio_fm_sel, 1);
         |   ^~~~~~~~~~~~~~~~~~~~~~~~
         |   gpio_set_value_cansleep
   sound/soc/samsung/midas_wm1811.c: In function 'midas_probe':
>> sound/soc/samsung/midas_wm1811.c:445:22: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_clk_get_optional'? [-Werror=implicit-function-declaration]
     445 |  priv->gpio_fm_sel = devm_gpiod_get_optional(dev, "fm-sel", GPIOD_OUT_HIGH);
         |                      ^~~~~~~~~~~~~~~~~~~~~~~
         |                      devm_clk_get_optional
>> sound/soc/samsung/midas_wm1811.c:445:61: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'?
     445 |  priv->gpio_fm_sel = devm_gpiod_get_optional(dev, "fm-sel", GPIOD_OUT_HIGH);
         |                                                             ^~~~~~~~~~~~~~
         |                                                             GPIOF_INIT_HIGH
   sound/soc/samsung/midas_wm1811.c:445:61: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +205 sound/soc/samsung/midas_wm1811.c

   193	
   194	static int midas_fm_set(struct snd_soc_dapm_widget *w,
   195				struct snd_kcontrol *kcontrol, int event)
   196	{
   197		struct snd_soc_card *card = w->dapm->card;
   198		struct midas_priv *priv = snd_soc_card_get_drvdata(card);
   199	
   200		if (!priv->gpio_fm_sel)
   201			return 0;
   202	
   203		switch (event) {
   204		case SND_SOC_DAPM_PRE_PMU:
 > 205			gpiod_set_value_cansleep(priv->gpio_fm_sel, 1);
   206			break;
   207		case SND_SOC_DAPM_POST_PMD:
   208			gpiod_set_value_cansleep(priv->gpio_fm_sel, 0);
   209			break;
   210		}
   211	
   212		return 0;
   213	}
   214	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-23 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 22:40 sound/soc/samsung/midas_wm1811.c:205:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? kernel test robot
2021-04-23 22:40 ` kernel test robot

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.