public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [atishp04:kvm_pmu_snapshot_v5 15/26] arch/riscv/kvm/vcpu_pmu.c:11:9: warning: 'pr_fmt' macro redefined
@ 2024-04-02 12:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-02 12:13 UTC (permalink / raw)
  To: Atish Patra; +Cc: llvm, oe-kbuild-all, Atish Patra, Anup Patel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-02 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 12:13 [atishp04:kvm_pmu_snapshot_v5 15/26] arch/riscv/kvm/vcpu_pmu.c:11:9: warning: 'pr_fmt' macro redefined kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox