From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C3B033C0 for ; Mon, 18 Jul 2022 16:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658161478; x=1689697478; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=zocwXvw+pBV624et2QOvpDfBJlbPa2su8++4TbEBxL4=; b=IRv/t6BjctGb9nWmdY+LP0rWtmhYjqGms/DXMgzZ54qnzKY0Eu0mSEQy a9EGWrmLyRfzMr74Jm1EIJRASCpa37gDKLtrvkzP2sIevqskQxv1ZNM1i DTB70cilS6WZQHc4x36VWoobaxgsv4GX5Tlc5rWKey6XsHR/lYPolmciZ aYWVgPXSWVcETcnzdWb8L+eiiD+JE+4tKUTpjSe+DhrZ+TyWHGLjfHLip qSxWCqkTy9r7U/n05y7oqy0z33K9sgIU1TryUaP9AB29A7VCPyF/s/RBu JymYRWZW7WH5sNe/QNkZ/6ZX1CwedpopdDE9Mh1YJk46sOOwC0XhFehAK w==; X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="311947925" X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="311947925" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 09:23:53 -0700 X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="773793615" Received: from astephax-mobl.amr.corp.intel.com (HELO [10.209.134.250]) ([10.209.134.250]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 09:23:52 -0700 Message-ID: <443016ec-d597-3f30-874d-c522f457eca0@linux.intel.com> Date: Mon, 18 Jul 2022 09:10:27 -0500 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used Content-Language: en-US To: kernel test robot , Brent Lu Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Mark Brown , Bard Liao References: <202207180841.Bkm8xoh8-lkp@intel.com> From: Pierre-Louis Bossart In-Reply-To: <202207180841.Bkm8xoh8-lkp@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/17/22 19:53, kernel test robot wrote: > Hi Brent, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: ff6992735ade75aae3e35d16b17da1008d753d28 > commit: 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 ASoC: Intel: sof_ssp_amp: rename driver and support cs35l41 amplifier > date: 5 months ago > config: i386-randconfig-a006-20220718 (https://download.01.org/0day-ci/archive/20220718/202207180841.Bkm8xoh8-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 45067f8fbf61284839c739807c2da2e2505661eb) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2fe14ff61bd6d4fabe313435dd378b5a38eb6102 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash sound/soc/intel/boards/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > >>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used [-Wunused-but-set-variable] > int i = 0; > ^ > 1 warning generated. Already fixed by aa4c06e02b41 ("ASoC: Intel: sof_ssp_amp: remove 'set-but-not-used' warning ") > > > vim +/i +97 sound/soc/intel/boards/sof_ssp_amp.c > > 89 > 90 static int sof_card_late_probe(struct snd_soc_card *card) > 91 { > 92 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card); > 93 struct snd_soc_component *component = NULL; > 94 char jack_name[NAME_SIZE]; > 95 struct sof_hdmi_pcm *pcm; > 96 int err; > > 97 int i = 0; > 98 > 99 if (!(sof_ssp_amp_quirk & SOF_HDMI_PLAYBACK_PRESENT)) > 100 return 0; > 101 > 102 /* HDMI is not supported by SOF on Baytrail/CherryTrail */ > 103 if (!ctx->idisp_codec) > 104 return 0; > 105 > 106 if (list_empty(&ctx->hdmi_pcm_list)) > 107 return -EINVAL; > 108 > 109 if (ctx->common_hdmi_codec_drv) { > 110 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, > 111 head); > 112 component = pcm->codec_dai->component; > 113 return hda_dsp_hdmi_build_controls(card, component); > 114 } > 115 > 116 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { > 117 component = pcm->codec_dai->component; > 118 snprintf(jack_name, sizeof(jack_name), > 119 "HDMI/DP, pcm=%d Jack", pcm->device); > 120 err = snd_soc_card_jack_new(card, jack_name, > 121 SND_JACK_AVOUT, &pcm->sof_hdmi, > 122 NULL, 0); > 123 > 124 if (err) > 125 return err; > 126 > 127 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, > 128 &pcm->sof_hdmi); > 129 if (err < 0) > 130 return err; > 131 > 132 i++; > 133 } > 134 > 135 return hdac_hdmi_jack_port_init(component, &card->dapm); > 136 } > 137 >