From: kernel test robot <lkp@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: oe-kbuild-all@lists.linux.dev, alsa-devel@alsa-project.org
Subject: [tiwai-sound:test/snd_ctl_remove-lock-fix 40/54] htmldocs: ./include/sound/control.h:162: warning: expecting prototype for snd_ctl_find_id(). Prototype was for snd_ctl_find_id_mixer() instead
Date: Thu, 6 Jul 2023 01:47:55 +0800 [thread overview]
Message-ID: <202307060119.mTXEyy6N-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git test/snd_ctl_remove-lock-fix
head: 9ad18619a06d551105bd84191dca5bb5295277c7
commit: 59444a29dbfd44718fef15083aa339c2c8b579b5 [40/54] ALSA: control: Introduce snd_ctl_find_id_mixer()
reproduce: (https://download.01.org/0day-ci/archive/20230706/202307060119.mTXEyy6N-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307060119.mTXEyy6N-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> ./include/sound/control.h:162: warning: expecting prototype for snd_ctl_find_id(). Prototype was for snd_ctl_find_id_mixer() instead
vim +162 ./include/sound/control.h
147
148 /**
149 * snd_ctl_find_id - find the control instance with the given name string
150 * @card: the card instance
151 * @name: the name string
152 *
153 * Finds the control instance with the given name and
154 * @SNDRV_CTL_ELEM_IFACE_MIXER. Other fields are set to zero.
155 *
156 * This is merely a wrapper to snd_ctl_find_id().
157 *
158 * Return: The pointer of the instance if found, or %NULL if not.
159 */
160 static inline struct snd_kcontrol *
161 snd_ctl_find_id_mixer(struct snd_card *card, const char *name)
> 162 {
163 struct snd_ctl_elem_id id = {};
164
165 id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
166 strscpy(id.name, name, sizeof(id.name));
167 return snd_ctl_find_id(card, &id);
168 }
169
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-07-05 17:49 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=202307060119.mTXEyy6N-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tiwai@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox