From: kernel test robot <lkp@intel.com>
To: Atish Patra <atishp@rivosinc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Atish Patra <Atish.Patra@wdc.com>,
Anup Patel <anup@brainfault.org>
Subject: [atishp04:kvm_pmu_snapshot_v5 15/26] arch/riscv/kvm/vcpu_pmu.c:11:9: warning: 'pr_fmt' macro redefined
Date: Tue, 2 Apr 2024 20:13:07 +0800 [thread overview]
Message-ID: <202404022021.LcazvaRh-lkp@intel.com> (raw)
tree: https://github.com/atishp04/linux kvm_pmu_snapshot_v5
head: b0e65c6b9040f92d37b78f24aab4948fd3f26bf8
commit: 77445e9905bd24241148bb9786af53c67e1a054d [15/26] RISC-V: KVM: Implement SBI PMU Snapshot feature
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240402/202404022021.LcazvaRh-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 546dc2245ffc4cccd0b05b58b7a5955e355a3b27)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240402/202404022021.LcazvaRh-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/202404022021.LcazvaRh-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/riscv/kvm/vcpu_pmu.c:11:9: warning: 'pr_fmt' macro redefined [-Wmacro-redefined]
11 | #define pr_fmt(fmt) "riscv-kvm-pmu: " fmt
| ^
include/linux/printk.h:347:9: note: previous definition is here
347 | #define pr_fmt(fmt) fmt
| ^
In file included from arch/riscv/kvm/vcpu_pmu.c:14:
In file included from include/linux/kvm_host.h:7:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:23:
In file included from arch/riscv/include/asm/irq.h:10:
In file included from include/linux/interrupt.h:21:
In file included from arch/riscv/include/asm/sections.h:9:
In file included from include/linux/mm.h:2208:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
2 warnings generated.
vim +/pr_fmt +11 arch/riscv/kvm/vcpu_pmu.c
8f0153ecd3bf18 Atish Patra 2023-02-07 @11 #define pr_fmt(fmt) "riscv-kvm-pmu: " fmt
8f0153ecd3bf18 Atish Patra 2023-02-07 12 #include <linux/errno.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 13 #include <linux/err.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 14 #include <linux/kvm_host.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 15 #include <linux/perf/riscv_pmu.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 16 #include <asm/csr.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 17 #include <asm/kvm_vcpu_sbi.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 18 #include <asm/kvm_vcpu_pmu.h>
0cb74b65d2e5e6 Atish Patra 2023-02-07 19 #include <linux/bitops.h>
8f0153ecd3bf18 Atish Patra 2023-02-07 20
:::::: The code at line 11 was first introduced by commit
:::::: 8f0153ecd3bf184bc06afca25b737c707fa4d765 RISC-V: KVM: Add skeleton support for perf
:::::: TO: Atish Patra <atishp@rivosinc.com>
:::::: CC: Anup Patel <anup@brainfault.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-04-02 12:13 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=202404022021.LcazvaRh-lkp@intel.com \
--to=lkp@intel.com \
--cc=Atish.Patra@wdc.com \
--cc=anup@brainfault.org \
--cc=atishp@rivosinc.com \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox