Messages in this thread | | | Date | Sat, 24 Apr 2021 06:40:35 +0800 | From | kernel test robot <> | Subject | sound/soc/samsung/midas_wm1811.c:205:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? |
| |
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 [unhandled content-type:application/gzip] | |