From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8341936973196461495==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [chrome-os:chromeos-5.10 23804/24051] sound/soc/intel/avs/pcm.c:356:30: warning: variable 'w' set but not used Date: Tue, 07 Dec 2021 01:29:40 +0800 Message-ID: <202112070146.1pReOxqB-lkp@intel.com> List-Id: --===============8341936973196461495== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chr= omeos-5.10 head: fad62c338cc7fbc5a59668723545a17874f0a035 commit: 44c06b0a880567f728b2635511cf50c28beedaf8 [23804/24051] CHROMIUM: AS= oC: Intel: avs: Generic PCM FE operations config: x86_64-randconfig-r035-20211205 (https://download.01.org/0day-ci/ar= chive/20211207/202112070146.1pReOxqB-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): git remote add chrome-os https://chromium.googlesource.com/chromium= os/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=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash sound/soc/= intel/avs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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' define= d but not used [-Wunused-const-variable=3D] 643 | static const struct snd_soc_component_driver avs_component_drive= r =3D { | ^~~~~~~~~~~~~~~~~~~~ sound/soc/intel/avs/pcm.c:125:12: warning: 'avs_pcm_be_hw_params' define= d 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 =3D 0; 359 = 360 data =3D snd_soc_dai_get_dma_data(dai, substream); 361 stream =3D data->stream; 362 hstream =3D hdac_stream(stream); 363 = 364 if (!hstream->prepared) 365 return -EPIPE; 366 = 367 w =3D snd_soc_dai_get_widget(dai, substream->stream); 368 bus =3D 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 =3D 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 =3D 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 =3D=3D SNDRV_PCM_TRIGGER_STOP) { 393 ret =3D 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 =3D -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 --===============8341936973196461495==--