From: Will Deacon <will@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: Jean-Philippe Brucker <jean-philippe@linaro.org>,
llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Jay Chen <jkchen@linux.alibaba.com>,
Robin Murphy <robin.murphy@arm.com>
Subject: Re: [linux-next:master 6432/9897] drivers/perf/arm_smmuv3_pmu.c:889:34: warning: unused variable 'smmu_pmu_of_match'
Date: Tue, 4 Jan 2022 13:37:58 +0000 [thread overview]
Message-ID: <20220104133758.GA1827@willie-the-truck> (raw)
In-Reply-To: <202201041700.01KZEzhb-lkp@intel.com>
On Tue, Jan 04, 2022 at 05:49:36PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: ea586a076e8aa606c59b66d86660590f18354b11
> commit: 3f7be43561766b7ad91661580376913c997613d6 [6432/9897] perf/smmuv3: Add devicetree support
> config: x86_64-buildonly-randconfig-r001-20220102 (https://download.01.org/0day-ci/archive/20220104/202201041700.01KZEzhb-lkp@intel.com/config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 104a827ea6de0cbe0f5faef4407552ede31d165c)
> 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/next/linux-next.git/commit/?id=3f7be43561766b7ad91661580376913c997613d6
> 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 3f7be43561766b7ad91661580376913c997613d6
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/perf/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/perf/arm_smmuv3_pmu.c:889:34: warning: unused variable 'smmu_pmu_of_match' [-Wunused-const-variable]
> static const struct of_device_id smmu_pmu_of_match[] = {
> ^
> 1 warning generated.
>
>
> vim +/smmu_pmu_of_match +889 drivers/perf/arm_smmuv3_pmu.c
>
> 888
> > 889 static const struct of_device_id smmu_pmu_of_match[] = {
> 890 { .compatible = "arm,smmu-v3-pmcg" },
> 891 {}
> 892 };
> 893 MODULE_DEVICE_TABLE(of, smmu_pmu_of_match);
> 894
I've fixed this locally with an #ifdef CONFIG_OF around the match table.
I'll push out a branch once I've got on top of the other pending perf
issues.
Will
prev parent reply other threads:[~2022-01-04 13:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 9:49 kernel test robot
2022-01-04 13:37 ` Will Deacon [this message]
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=20220104133758.GA1827@willie-the-truck \
--to=will@kernel.org \
--cc=jean-philippe@linaro.org \
--cc=jkchen@linux.alibaba.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=robin.murphy@arm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox