From: kernel test robot <lkp@intel.com>
To: Thorsten Blum <blum@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Paul Walmsley <pjw@kernel.org>
Subject: [riscv:for-next 6/6] arch/riscv/kernel/process.c:138:17: error: implicit declaration of function 'str_supported_unsupported'
Date: Sun, 27 Sep 2026 20:15:19 +0200 [thread overview]
Message-ID: <202609272053.WuVCdS70-lkp@intel.com> (raw)
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
reply other threads:[~2026-09-27 18:15 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=202609272053.WuVCdS70-lkp@intel.com \
--to=lkp@intel.com \
--cc=blum@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pjw@kernel.org \
/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 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.