Re: [PATCH v0] RISC-V: Use Zkr to seed KASLR base address

From: kernel test robot
Date: Fri May 31 2024 - 14:35:45 EST


Hi Jesse,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.10-rc1 next-20240531]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Jesse-Taube/RISC-V-Use-Zkr-to-seed-KASLR-base-address/20240601-002545
base: linus/master
patch link: https://lore.kernel.org/r/20240531162327.2436962-1-jesse%40rivosinc.com
patch subject: [PATCH v0] RISC-V: Use Zkr to seed KASLR base address
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20240601/202406010252.0xgcgnD7-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240601/202406010252.0xgcgnD7-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406010252.0xgcgnD7-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

riscv64-linux-ld: arch/riscv/kernel/pi/archrandom_early.pi.o: in function `__pi_.L0 ':
>> __pi_archrandom_early.c:(.init.pi.text+0x90): undefined reference to `__pi__printk'
--
In file included from include/linux/kernel.h:31,
from include/linux/cpumask.h:11,
from arch/riscv/include/asm/processor.h:71,
from arch/riscv/include/asm/archrandom.h:13,
from arch/riscv/kernel/pi/archrandom_early.c:13:
>> include/linux/printk.h:619: warning: "pr_err_once" redefined
619 | #define pr_err_once(fmt, ...) \
|
arch/riscv/kernel/pi/archrandom_early.c:9: note: this is the location of the previous definition
9 | #define pr_err_once(...)
|


vim +/pr_err_once +619 include/linux/printk.h

16cb839f133249 Joe Perches 2011-01-12 612
16cb839f133249 Joe Perches 2011-01-12 613 #define pr_emerg_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 614 printk_once(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
16cb839f133249 Joe Perches 2011-01-12 615 #define pr_alert_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 616 printk_once(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
16cb839f133249 Joe Perches 2011-01-12 617 #define pr_crit_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 618 printk_once(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__)
16cb839f133249 Joe Perches 2011-01-12 @619 #define pr_err_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 620 printk_once(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
16cb839f133249 Joe Perches 2011-01-12 621 #define pr_warn_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 622 printk_once(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
16cb839f133249 Joe Perches 2011-01-12 623 #define pr_notice_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 624 printk_once(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
16cb839f133249 Joe Perches 2011-01-12 625 #define pr_info_once(fmt, ...) \
16cb839f133249 Joe Perches 2011-01-12 626 printk_once(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
eb012d125a2419 Tetsuo Handa 2020-05-25 627 /* no pr_cont_once, don't do that... */
36d308d8b547ee Mikhail Gruzdev 2013-02-21 628

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki