* [asahilinux:sound/ivsense-improvements 51/57] sound/soc/apple/macaudio.c:1016:5: warning: no previous prototype for 'macaudio_sss_info'
@ 2023-05-09 17:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-09 17:29 UTC (permalink / raw)
To: Martin Povišer; +Cc: oe-kbuild-all, Hector Martin
tree: https://github.com/AsahiLinux/linux sound/ivsense-improvements
head: 8db1ec849194a2607c8546306d0b9e0e1ed2a1da
commit: 7553794e9ed11bb344cec33d1460a2d06949a56c [51/57] ASoC: macaudio: Add 'Speakers Up Indicator' control
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230510/202305100111.lYmQSWU0-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.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://github.com/AsahiLinux/linux/commit/7553794e9ed11bb344cec33d1460a2d06949a56c
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux sound/ivsense-improvements
git checkout 7553794e9ed11bb344cec33d1460a2d06949a56c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash sound/soc/apple/
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/202305100111.lYmQSWU0-lkp@intel.com/
All warnings (new ones prefixed by >>):
sound/soc/apple/macaudio.c: In function 'macaudio_add_backend_dai_route':
sound/soc/apple/macaudio.c:764:32: error: 'struct snd_soc_dai' has no member named 'capture_widget'
764 | r->source = dai->capture_widget->name;
| ^~
sound/soc/apple/macaudio.c: At top level:
>> sound/soc/apple/macaudio.c:1016:5: warning: no previous prototype for 'macaudio_sss_info' [-Wmissing-prototypes]
1016 | int macaudio_sss_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
| ^~~~~~~~~~~~~~~~~
>> sound/soc/apple/macaudio.c:1026:5: warning: no previous prototype for 'macaudio_sss_get' [-Wmissing-prototypes]
1026 | int macaudio_sss_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uvalue)
| ^~~~~~~~~~~~~~~~
vim +/macaudio_sss_info +1016 sound/soc/apple/macaudio.c
1015
> 1016 int macaudio_sss_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1017 {
1018 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
1019 uinfo->count = 1;
1020 uinfo->value.integer.min = 0;
1021 uinfo->value.integer.max = 1;
1022
1023 return 0;
1024 }
1025
> 1026 int macaudio_sss_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uvalue)
1027 {
1028 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol);
1029 struct macaudio_snd_data *ma = snd_soc_card_get_drvdata(card);
1030
1031 /*
1032 * TODO: Check if any locking is in order here. I would
1033 * assume there is some ALSA-level lock, but DAPM implementations
1034 * of kcontrol ops do explicit locking, so look into it.
1035 */
1036 uvalue->value.integer.value[0] = ma->speakers_streaming;
1037
1038 return 0;
1039 }
1040
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-09 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 17:29 [asahilinux:sound/ivsense-improvements 51/57] sound/soc/apple/macaudio.c:1016:5: warning: no previous prototype for 'macaudio_sss_info' kernel 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).