All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto:sound-error-cleanup-2024-09-10 20/31] sound/soc/atmel/mikroe-proto.c:23:30: warning: unused variable 'card'
@ 2024-09-13  4:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-13  4:37 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-error-cleanup-2024-09-10
head:   df81764a514843b316e76c4bc95d2f97a31297f5
commit: c0ba340282eabd3b687386030a1972e46f73e44c [20/31] snd_soc_dai_set_sysclk
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20240913/202409131248.0FrTvExQ-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240913/202409131248.0FrTvExQ-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/202409131248.0FrTvExQ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   sound/soc/atmel/mikroe-proto.c: In function 'snd_proto_init':
>> sound/soc/atmel/mikroe-proto.c:23:30: warning: unused variable 'card' [-Wunused-variable]
      23 |         struct snd_soc_card *card = rtd->card;
         |                              ^~~~
--
   sound/soc/fsl/fsl-asoc-card.c: In function 'fsl_asoc_card_hw_params':
>> sound/soc/fsl/fsl-asoc-card.c:178:24: warning: unused variable 'dev' [-Wunused-variable]
     178 |         struct device *dev = rtd->card->dev;
         |                        ^~~
   sound/soc/fsl/fsl-asoc-card.c: In function 'fsl_asoc_card_hw_free':
   sound/soc/fsl/fsl-asoc-card.c:247:24: warning: unused variable 'dev' [-Wunused-variable]
     247 |         struct device *dev = rtd->card->dev;
         |                        ^~~
   sound/soc/fsl/fsl-asoc-card.c: In function 'fsl_asoc_card_late_probe':
   sound/soc/fsl/fsl-asoc-card.c:561:24: warning: unused variable 'dev' [-Wunused-variable]
     561 |         struct device *dev = card->dev;
         |                        ^~~
--
   sound/soc/fsl/imx-sgtl5000.c: In function 'imx_sgtl5000_dai_init':
>> sound/soc/fsl/imx-sgtl5000.c:30:24: warning: unused variable 'dev' [-Wunused-variable]
      30 |         struct device *dev = rtd->card->dev;
         |                        ^~~
--
   sound/soc/fsl/imx-hdmi.c: In function 'imx_hdmi_hw_params':
>> sound/soc/fsl/imx-hdmi.c:40:24: warning: unused variable 'dev' [-Wunused-variable]
      40 |         struct device *dev = card->dev;
         |                        ^~~
--
   sound/soc/fsl/imx-rpmsg.c: In function 'imx_rpmsg_late_probe':
>> sound/soc/fsl/imx-rpmsg.c:39:24: warning: unused variable 'dev' [-Wunused-variable]
      39 |         struct device *dev = card->dev;
         |                        ^~~
--
   sound/soc/fsl/imx-card.c: In function 'imx_aif_hw_params':
>> sound/soc/fsl/imx-card.c:298:24: warning: unused variable 'dev' [-Wunused-variable]
     298 |         struct device *dev = card->dev;
         |                        ^~~
--
   sound/soc/sdw_utils/soc_sdw_rt_amp.c: In function 'rt1308_i2s_hw_params':
>> sound/soc/sdw_utils/soc_sdw_rt_amp.c:219:30: warning: unused variable 'card' [-Wunused-variable]
     219 |         struct snd_soc_card *card = rtd->card;
         |                              ^~~~
--
   sound/soc/intel/boards/sof_realtek_common.c: In function 'rt1308_hw_params':
>> sound/soc/intel/boards/sof_realtek_common.c:550:30: warning: unused variable 'card' [-Wunused-variable]
     550 |         struct snd_soc_card *card = rtd->card;
         |                              ^~~~
--
   sound/soc/mediatek/mt8195/mt8195-mt6359.c: In function 'mt8195_rt1011_etdm_hw_params':
>> sound/soc/mediatek/mt8195/mt8195-mt6359.c:472:30: warning: unused variable 'card' [-Wunused-variable]
     472 |         struct snd_soc_card *card = rtd->card;
         |                              ^~~~


vim +/card +23 sound/soc/atmel/mikroe-proto.c

a45f8853a5f95e Codrin Ciubotariu 2018-08-31  20  
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  21  static int snd_proto_init(struct snd_soc_pcm_runtime *rtd)
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  22  {
a45f8853a5f95e Codrin Ciubotariu 2018-08-31 @23  	struct snd_soc_card *card = rtd->card;
6547effc3aea50 Kuninori Morimoto 2023-09-11  24  	struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  25  
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  26  	/* Set proto sysclk */
c0ba340282eabd Kuninori Morimoto 2024-09-10  27  	return snd_soc_dai_set_sysclk(codec_dai, WM8731_SYSCLK_XTAL,
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  28  					 XTAL_RATE, SND_SOC_CLOCK_IN);
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  29  }
a45f8853a5f95e Codrin Ciubotariu 2018-08-31  30  

:::::: The code at line 23 was first introduced by commit
:::::: a45f8853a5f95e3760dfbd7ba09d3d597d247040 ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

:::::: TO: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
:::::: CC: Mark Brown <broonie@kernel.org>

-- 
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:[~2024-09-13  4:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-13  4:37 [morimoto:sound-error-cleanup-2024-09-10 20/31] sound/soc/atmel/mikroe-proto.c:23:30: warning: unused variable 'card' 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.