* [chrome-os:chromeos-5.10 23804/24051] sound/soc/intel/avs/pcm.c:356:30: warning: variable 'w' set but not used
@ 2021-12-06 17:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-06 17:29 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4064 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: fad62c338cc7fbc5a59668723545a17874f0a035
commit: 44c06b0a880567f728b2635511cf50c28beedaf8 [23804/24051] CHROMIUM: ASoC: Intel: avs: Generic PCM FE operations
config: x86_64-randconfig-r035-20211205 (https://download.01.org/0day-ci/archive/20211207/202112070146.1pReOxqB-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 44c06b0a880567f728b2635511cf50c28beedaf8
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/intel/avs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
sound/soc/intel/avs/pcm.c: In function 'avs_dai_fe_trigger':
>> sound/soc/intel/avs/pcm.c:356:30: warning: variable 'w' set but not used [-Wunused-but-set-variable]
356 | struct snd_soc_dapm_widget *w;
| ^
At top level:
sound/soc/intel/avs/pcm.c:656:12: warning: 'avs_soc_component_register' defined but not used [-Wunused-function]
656 | static int avs_soc_component_register(struct device *dev, const char *name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/intel/avs/pcm.c:643:46: warning: 'avs_component_driver' defined but not used [-Wunused-const-variable=]
643 | static const struct snd_soc_component_driver avs_component_driver = {
| ^~~~~~~~~~~~~~~~~~~~
sound/soc/intel/avs/pcm.c:125:12: warning: 'avs_pcm_be_hw_params' defined but not used [-Wunused-function]
125 | static int avs_pcm_be_hw_params(struct avs_dev *adev,
| ^~~~~~~~~~~~~~~~~~~~
vim +/w +356 sound/soc/intel/avs/pcm.c
348
349 static int avs_dai_fe_trigger(struct snd_pcm_substream *substream,
350 int cmd, struct snd_soc_dai *dai)
351 {
352 struct avs_pcm_dma_data *data;
353 struct hdac_ext_stream *stream;
354 struct hdac_stream *hstream;
355 struct hdac_bus *bus;
> 356 struct snd_soc_dapm_widget *w;
357 unsigned long flags;
358 int ret = 0;
359
360 data = snd_soc_dai_get_dma_data(dai, substream);
361 stream = data->stream;
362 hstream = hdac_stream(stream);
363
364 if (!hstream->prepared)
365 return -EPIPE;
366
367 w = snd_soc_dai_get_widget(dai, substream->stream);
368 bus = hstream->bus;
369
370 switch (cmd) {
371 case SNDRV_PCM_TRIGGER_START:
372 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
373 spin_lock_irqsave(&bus->reg_lock, flags);
374 snd_hdac_stream_start(hstream, true);
375 spin_unlock_irqrestore(&bus->reg_lock, flags);
376
377 ret = avs_path_run(data->path, AVS_TPLG_TRIGGER_AUTO);
378 if (ret < 0)
379 dev_err(dai->dev, "run FE path failed: %d\n", ret);
380 break;
381
382 case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
383 case SNDRV_PCM_TRIGGER_STOP:
384 ret = avs_path_pause(data->path);
385 if (ret < 0)
386 dev_err(dai->dev, "pause FE path failed: %d\n", ret);
387
388 spin_lock_irqsave(&bus->reg_lock, flags);
389 snd_hdac_stream_stop(hstream);
390 spin_unlock_irqrestore(&bus->reg_lock, flags);
391
392 if (cmd == SNDRV_PCM_TRIGGER_STOP) {
393 ret = avs_path_reset(data->path);
394 if (ret < 0)
395 dev_err(dai->dev, "reset FE path failed: %d\n", ret);
396 }
397 break;
398
399 default:
400 ret = -EINVAL;
401 break;
402 }
403
404 return ret;
405 }
406
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-06 17:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 17:29 [chrome-os:chromeos-5.10 23804/24051] sound/soc/intel/avs/pcm.c:356:30: warning: variable 'w' set but not used kernel test robot
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.