From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47BDEC433F5 for ; Fri, 3 Sep 2021 00:21:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D1ADD60F11 for ; Fri, 3 Sep 2021 00:21:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D1ADD60F11 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 607C3900002; Thu, 2 Sep 2021 20:21:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5B9A48D0001; Thu, 2 Sep 2021 20:21:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4A4DC900002; Thu, 2 Sep 2021 20:21:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0159.hostedemail.com [216.40.44.159]) by kanga.kvack.org (Postfix) with ESMTP id 3A5618D0001 for ; Thu, 2 Sep 2021 20:21:38 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id F0C872A4B4 for ; Fri, 3 Sep 2021 00:21:37 +0000 (UTC) X-FDA: 78544358634.20.A607CF2 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf23.hostedemail.com (Postfix) with ESMTP id 9513890000A0 for ; Fri, 3 Sep 2021 00:21:37 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 9428760555; Fri, 3 Sep 2021 00:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630628496; bh=xps6O0n1T0q7fAV/lqXRRImBcI3pTQf7eq4VADiFEKg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=lS4p6ypuayhqEdIM/l22Q0Sl5OP5J1KNQzHvVDt3BZrDd7uwy04ELCG+DcGfE0ZWH QtFWVuaqmWHCjpWp2U9MhWo0Tfmh3bkYtFNksL8PIGl0wc8ipuI1/0nQgBdli766R1 2T+TVt2EIkFElNAX1WFwgbSOMhneyCMmtT7wlphJ/7ipi/91frnfVWej6MUGVB1Cp2 NlDv06Hd0MboeM4dBo/UNMkDFr1fqMez7GXaKLseDUdmJ5+fROiGeX7BfpCh6yfrDP c35YcDsK/TXbzJrsVIWhk1ZGMhbwlv/5QCQ4iaymWvFNAcPNiBQUw9eB7pdzv4BRSz zf9sPglOFprPw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <85c61a79-3e83-84c8-1b75-3e4640ac3490@somainline.org> References: <202109021640.TXyMlULd-lkp@intel.com> <85c61a79-3e83-84c8-1b75-3e4640ac3490@somainline.org> Subject: Re: [linux-next:master 10841/11508] drivers/clk/qcom/gcc-sm6350.c:179:37: warning: unused variable 'gcc_parent_data_2' From: Stephen Boyd Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List To: Konrad Dybcio , kernel test robot Date: Thu, 02 Sep 2021 17:21:35 -0700 Message-ID: <163062849533.405991.5146021696613255539@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lS4p6ypu; spf=pass (imf23.hostedemail.com: domain of sboyd@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=sboyd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Stat-Signature: jjzhag4k3wpf83jwmjxzqey4d8w67i8g X-Rspamd-Queue-Id: 9513890000A0 X-Rspamd-Server: rspam04 X-HE-Tag: 1630628497-755186 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Quoting Konrad Dybcio (2021-09-02 02:01:30) >=20 > On 02.09.2021 10:57, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git master > > head: 34560ced20599a01660a693f464c7c7dc83db1d9 > > commit: 131abae905df99f63d825e47b4df100d34f518ce [10841/11508] clk: qco= m: Add SM6350 GCC driver > > config: riscv-buildonly-randconfig-r006-20210902 (attached as .config) > > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c9= 948e9254fbb6ea00f66c7b4542311d21e060be) > > reproduce (this is a W=3D1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/s= bin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install riscv cross compiling tool for clang build > > # apt-get install binutils-riscv64-linux-gnu > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-ne= xt.git/commit/?id=3D131abae905df99f63d825e47b4df100d34f518ce > > git remote add linux-next https://git.kernel.org/pub/scm/linux/= kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout 131abae905df99f63d825e47b4df100d34f518ce > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross = ARCH=3Driscv=20 > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > >>> drivers/clk/qcom/gcc-sm6350.c:179:37: warning: unused variable 'gcc_p= arent_data_2' [-Wunused-const-variable] > > static const struct clk_parent_data gcc_parent_data_2[] =3D { > > ^ > > 1 warning generated. > > > > > > vim +/gcc_parent_data_2 +179 drivers/clk/qcom/gcc-sm6350.c > > > > 178 =20 > > > 179 static const struct clk_parent_data gcc_parent_data_2[] = =3D { > > 180 { .fw_name =3D "bi_tcxo" }, > > 181 { .hw =3D &gpll0_out_odd.clkr.hw }, > > 182 }; > > 183 static const struct clk_parent_data gcc_parent_data_2_ao[= ] =3D { > > 184 { .fw_name =3D "bi_tcxo_ao" }, > > 185 { .hw =3D &gpll0_out_odd.clkr.hw }, > > 186 }; > > 187 =20 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >=20 > Looks like this slipped through.. gcc_parent_data_2[] is in fact not used= . Could you remove that array in your tree, Stephen? >=20 >=20 Please send a patch.