* [avpatel:riscv_sbi_watchdog_v3 102/123] arch/loongarch/include/asm/loongarch.h:191:31: error: implicit declaration of function '__csrwr_d'; did you mean '__iocsrwr_w'?
@ 2026-11-19 14:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-19 14:04 UTC (permalink / raw)
To: Mayuresh Chitale; +Cc: oe-kbuild-all, Anup Patel
tree: https://github.com/avpatel/linux.git riscv_sbi_watchdog_v3
head: ac1077ad1098450b0752cf0c862edf36f43de299
commit: c8fdc593cf3174fdad60a64df0e84942ee5c7108 [102/123] gtrace: Add perf driver for tracing using perf tool
config: loongarch-randconfig-r2311-20261119 (https://download.01.org/0day-ci/archive/20261119/20261119150249.dSBPYhsg-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 16.2.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261119/20261119150249.dSBPYhsg-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/20261119150249.dSBPYhsg-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
arch/loongarch/kernel/ptrace.c: In function 'ptrace_hbptriggered':
>> arch/loongarch/kernel/ptrace.c:402:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
402 | force_sig_ptrace_errno_trap(i, (void __user *)bkpt->address);
| ^
In file included from arch/loongarch/include/asm/cpu-info.h:11,
from arch/loongarch/include/asm/cpu-features.h:13,
from arch/loongarch/include/asm/cmpxchg.h:11,
from arch/loongarch/include/asm/atomic.h:12,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/atomic.h:5,
from arch/loongarch/include/asm/bitops.h:38,
from include/linux/bitops.h:67,
from include/linux/kernel.h:23,
from arch/loongarch/kernel/ptrace.c:17:
arch/loongarch/kernel/ptrace.c: In function 'set_single_step':
>> arch/loongarch/include/asm/loongarch.h:191:31: error: implicit declaration of function '__csrwr_d'; did you mean '__iocsrwr_w'? [-Wimplicit-function-declaration]
191 | #define csr_write64(val, reg) __csrwr_d(val, reg)
| ^~~~~~~~~
arch/loongarch/kernel/ptrace.c:1073:17: note: in expansion of macro 'csr_write64'
1073 | csr_write64(attr.bp_addr, LOONGARCH_CSR_IB0ADDR);
| ^~~~~~~~~~~
--
In file included from arch/loongarch/include/asm/percpu.h:8,
from arch/loongarch/include/asm/current.h:9,
from include/linux/sched.h:12,
from include/linux/ptrace.h:6,
from arch/loongarch/include/uapi/asm/bpf_perf_event.h:5,
from include/uapi/linux/bpf_perf_event.h:11,
from include/linux/perf_event.h:18,
from include/linux/hw_breakpoint.h:5,
from arch/loongarch/kernel/hw_breakpoint.c:7:
arch/loongarch/kernel/hw_breakpoint.c: In function 'read_wb_reg':
>> arch/loongarch/include/asm/loongarch.h:189:25: error: implicit declaration of function '__csrrd_d'; did you mean '__iocsrrd_w'? [-Wimplicit-function-declaration]
189 | #define csr_read64(reg) __csrrd_d(reg)
| ^~~~~~~~~
arch/loongarch/include/asm/hw_breakpoint.h:60:23: note: in expansion of macro 'csr_read64'
60 | VAL = csr_read64(LOONGARCH_CSR_##IB##N##REG); \
| ^~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c:38:17: note: in expansion of macro 'LOONGARCH_CSR_WATCH_READ'
38 | LOONGARCH_CSR_WATCH_READ(N, REG, T, VAL); \
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c:47:9: note: in expansion of macro 'READ_WB_REG_CASE'
47 | READ_WB_REG_CASE(OFF, 0, REG, T, VAL); \
| ^~~~~~~~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c:83:9: note: in expansion of macro 'GEN_READ_WB_REG_CASES'
83 | GEN_READ_WB_REG_CASES(CSR_CFG_ADDR, ADDR, t, val);
| ^~~~~~~~~~~~~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c: In function 'write_wb_reg':
>> arch/loongarch/include/asm/loongarch.h:191:31: error: implicit declaration of function '__csrwr_d'; did you mean '__iocsrwr_w'? [-Wimplicit-function-declaration]
191 | #define csr_write64(val, reg) __csrwr_d(val, reg)
| ^~~~~~~~~
arch/loongarch/include/asm/hw_breakpoint.h:68:17: note: in expansion of macro 'csr_write64'
68 | csr_write64(VAL, LOONGARCH_CSR_##IB##N##REG); \
| ^~~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c:43:17: note: in expansion of macro 'LOONGARCH_CSR_WATCH_WRITE'
43 | LOONGARCH_CSR_WATCH_WRITE(N, REG, T, VAL); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c:63:9: note: in expansion of macro 'WRITE_WB_REG_CASE'
63 | WRITE_WB_REG_CASE(OFF, 0, REG, T, VAL); \
| ^~~~~~~~~~~~~~~~~
arch/loongarch/kernel/hw_breakpoint.c:98:9: note: in expansion of macro 'GEN_WRITE_WB_REG_CASES'
98 | GEN_WRITE_WB_REG_CASES(CSR_CFG_ADDR, ADDR, t, val);
| ^~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/loongarch/include/asm/cpu-info.h:11,
from arch/loongarch/include/asm/cpu-features.h:13,
from arch/loongarch/include/asm/cmpxchg.h:11,
from arch/loongarch/include/asm/atomic.h:12,
from include/linux/atomic.h:7,
from include/linux/cpumask.h:10,
from arch/loongarch/kernel/perf_event.c:13:
arch/loongarch/kernel/perf_event.c: In function 'loongarch_pmu_read_counter':
>> arch/loongarch/include/asm/loongarch.h:189:25: error: implicit declaration of function '__csrrd_d'; did you mean '__iocsrrd_w'? [-Wimplicit-function-declaration]
189 | #define csr_read64(reg) __csrrd_d(reg)
| ^~~~~~~~~
arch/loongarch/include/asm/loongarch.h:1383:41: note: in expansion of macro 'csr_read64'
1383 | #define read_csr_perfcntr0() csr_read64(LOONGARCH_CSR_PERFCNTR0)
| ^~~~~~~~~~
arch/loongarch/kernel/perf_event.c:167:23: note: in expansion of macro 'read_csr_perfcntr0'
167 | val = read_csr_perfcntr0();
| ^~~~~~~~~~~~~~~~~~
arch/loongarch/kernel/perf_event.c: In function 'loongarch_pmu_write_counter':
>> arch/loongarch/include/asm/loongarch.h:191:31: error: implicit declaration of function '__csrwr_d'; did you mean '__iocsrwr_w'? [-Wimplicit-function-declaration]
191 | #define csr_write64(val, reg) __csrwr_d(val, reg)
| ^~~~~~~~~
arch/loongarch/include/asm/loongarch.h:1391:41: note: in expansion of macro 'csr_write64'
1391 | #define write_csr_perfcntr0(val) csr_write64(val, LOONGARCH_CSR_PERFCNTR0)
| ^~~~~~~~~~~
arch/loongarch/kernel/perf_event.c:190:17: note: in expansion of macro 'write_csr_perfcntr0'
190 | write_csr_perfcntr0(val);
| ^~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PERF_EVENTS
Depends on [n]: HAVE_PERF_EVENTS [=n]
Selected by [y]:
- GTRACE [=y] && OF [=y]
vim +191 arch/loongarch/include/asm/loongarch.h
f2ac457a61389b Huacai Chen 2022-05-31 186
f2ac457a61389b Huacai Chen 2022-05-31 187 /* CSR */
53a4858ccd0d27 WANG Xuerui 2023-06-29 188 #define csr_read32(reg) __csrrd_w(reg)
53a4858ccd0d27 WANG Xuerui 2023-06-29 @189 #define csr_read64(reg) __csrrd_d(reg)
53a4858ccd0d27 WANG Xuerui 2023-06-29 190 #define csr_write32(val, reg) __csrwr_w(val, reg)
53a4858ccd0d27 WANG Xuerui 2023-06-29 @191 #define csr_write64(val, reg) __csrwr_d(val, reg)
53a4858ccd0d27 WANG Xuerui 2023-06-29 192 #define csr_xchg32(val, mask, reg) __csrxchg_w(val, mask, reg)
53a4858ccd0d27 WANG Xuerui 2023-06-29 193 #define csr_xchg64(val, mask, reg) __csrxchg_d(val, mask, reg)
f2ac457a61389b Huacai Chen 2022-05-31 194
:::::: The code at line 191 was first introduced by commit
:::::: 53a4858ccd0d27538f9ab1ac2bead002fca97edc LoongArch: Make the CPUCFG&CSR ops simple aliases of compiler built-ins
:::::: TO: WANG Xuerui <git@xen0n.name>
:::::: CC: Huacai Chen <chenhuacai@loongson.cn>
--
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:[~2026-11-19 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 14:04 [avpatel:riscv_sbi_watchdog_v3 102/123] arch/loongarch/include/asm/loongarch.h:191:31: error: implicit declaration of function '__csrwr_d'; did you mean '__iocsrwr_w'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.