From: kernel test robot <lkp@intel.com>
To: "Martin Povišer" <povik+lin@cutebit.org>
Cc: oe-kbuild-all@lists.linux.dev, Hector Martin <marcan@marcan.st>
Subject: [asahilinux:sound/ivsense-improvements 51/57] sound/soc/apple/macaudio.c:1016:5: warning: no previous prototype for 'macaudio_sss_info'
Date: Wed, 10 May 2023 01:29:31 +0800 [thread overview]
Message-ID: <202305100111.lYmQSWU0-lkp@intel.com> (raw)
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
reply other threads:[~2023-05-09 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202305100111.lYmQSWU0-lkp@intel.com \
--to=lkp@intel.com \
--cc=marcan@marcan.st \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=povik+lin@cutebit.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.