All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-error-cleanup-2024-09-10 20/31] sound/soc/atmel/mikroe-proto.c:23:30: warning: unused variable 'card'
Date: Fri, 13 Sep 2024 12:37:31 +0800	[thread overview]
Message-ID: <202409131248.0FrTvExQ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-09-13  4:37 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=202409131248.0FrTvExQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.