* [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
@ 2023-07-05 17:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-05 17:47 UTC (permalink / raw)
To: Takashi Iwai; +Cc: oe-kbuild-all, alsa-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-05 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 17:47 [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 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