* [riscv:for-next 6/6] arch/riscv/kernel/process.c:138:17: error: implicit declaration of function 'str_supported_unsupported'
@ 2026-09-27 18:15 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-27 18:15 UTC (permalink / raw)
To: Thorsten Blum; +Cc: oe-kbuild-all, Paul Walmsley
tree: https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git for-next
head: a06776565b9e73512e880a95b66c198ae8e7e24a
commit: a06776565b9e73512e880a95b66c198ae8e7e24a [6/6] riscv: process: Use str_supported_unsupported() in compat_mode_detect()
config: riscv-randconfig-r2104-20260927 (https://download.01.org/0day-ci/archive/20260927/202609272053.WuVCdS70-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609272053.WuVCdS70-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/202609272053.WuVCdS70-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:31,
from arch/riscv/include/asm/bug.h:85,
from include/linux/bug.h:5,
from arch/riscv/include/asm/current.h:13,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from arch/riscv/kernel/process.c:11:
arch/riscv/kernel/process.c: In function 'compat_mode_detect':
>> arch/riscv/kernel/process.c:138:17: error: implicit declaration of function 'str_supported_unsupported' [-Wimplicit-function-declaration]
138 | str_supported_unsupported(compat_mode_supported));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:584:9: note: in expansion of macro 'printk'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
arch/riscv/kernel/process.c:137:9: note: in expansion of macro 'pr_info'
137 | pr_info("riscv: ELF compat mode %s",
| ^~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:584:9: note: in expansion of macro 'printk'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:584:16: note: in expansion of macro 'KERN_INFO'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
arch/riscv/kernel/process.c:137:9: note: in expansion of macro 'pr_info'
137 | pr_info("riscv: ELF compat mode %s",
| ^~~~~~~
vim +/str_supported_unsupported +138 arch/riscv/kernel/process.c
126
127 static int __init compat_mode_detect(void)
128 {
129 unsigned long tmp = csr_read(CSR_STATUS);
130
131 csr_write(CSR_STATUS, (tmp & ~SR_UXL) | SR_UXL_32);
132 compat_mode_supported =
133 (csr_read(CSR_STATUS) & SR_UXL) == SR_UXL_32;
134
135 csr_write(CSR_STATUS, tmp);
136
137 pr_info("riscv: ELF compat mode %s",
> 138 str_supported_unsupported(compat_mode_supported));
139
140 return 0;
141 }
142 early_initcall(compat_mode_detect);
143 #endif
144
--
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-09-27 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27 18:15 [riscv:for-next 6/6] arch/riscv/kernel/process.c:138:17: error: implicit declaration of function 'str_supported_unsupported' 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.