From: kernel test robot <lkp@intel.com>
To: Yuqian Yang <yangyuqian@uniontech.com>,
Huacai Chen <chenhuacai@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
WANG Xuerui <kernel@xen0n.name>,
Cheng Nie <niecheng1@uniontech.com>,
Wentao Guan <guanwentao@uniontech.com>,
Dandan Zhang <zhangdandan@uniontech.com>,
loongarch@lists.linux.dev, linux-kernel@vger.kernel.org,
Yuqian Yang <yangyuqian@uniontech.com>
Subject: Re: [PATCH] loongarch: improve logging of disabling KASLR.
Date: Mon, 13 Apr 2026 16:29:23 +0800 [thread overview]
Message-ID: <202604130224.WAbBNHnS-lkp@intel.com> (raw)
In-Reply-To: <E4B91143DC525DC6+20260403063008.94237-1-yangyuqian@uniontech.com>
Hi Yuqian,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v7.0-rc7 next-20260410]
[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/Yuqian-Yang/loongarch-improve-logging-of-disabling-KASLR/20260412-053808
base: linus/master
patch link: https://lore.kernel.org/r/E4B91143DC525DC6%2B20260403063008.94237-1-yangyuqian%40uniontech.com
patch subject: [PATCH] loongarch: improve logging of disabling KASLR.
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20260413/202604130224.WAbBNHnS-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260413/202604130224.WAbBNHnS-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/202604130224.WAbBNHnS-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/loongarch/kernel/relocate.c:144:11: error: expected ')'
144 | pr_info(message, "nokaslr", "built-in");
| ^
arch/loongarch/kernel/relocate.c:144:3: note: to match this '('
144 | pr_info(message, "nokaslr", "built-in");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:435:27: note: expanded from macro '__printk_index_emit'
435 | if (__builtin_constant_p(_fmt) && __builtin_constant_p(_level)) { \
| ^
>> arch/loongarch/kernel/relocate.c:144:11: error: expected ')'
144 | pr_info(message, "nokaslr", "built-in");
| ^
arch/loongarch/kernel/relocate.c:144:3: note: to match this '('
144 | pr_info(message, "nokaslr", "built-in");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:444:32: note: expanded from macro '__printk_index_emit'
444 | .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
| ^
>> arch/loongarch/kernel/relocate.c:144:11: error: expected ')'
144 | pr_info(message, "nokaslr", "built-in");
| ^
arch/loongarch/kernel/relocate.c:144:3: note: to match this '('
144 | pr_info(message, "nokaslr", "built-in");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:444:41: note: expanded from macro '__printk_index_emit'
444 | .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
| ^
>> arch/loongarch/kernel/relocate.c:144:11: error: expected ')'
144 | pr_info(message, "nokaslr", "built-in");
| ^
arch/loongarch/kernel/relocate.c:144:3: note: to match this '('
144 | pr_info(message, "nokaslr", "built-in");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:483:10: note: expanded from macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^
arch/loongarch/kernel/relocate.c:150:11: error: expected ')'
150 | pr_info(message, "nokaslr", "boot");
| ^
arch/loongarch/kernel/relocate.c:150:3: note: to match this '('
150 | pr_info(message, "nokaslr", "boot");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:435:27: note: expanded from macro '__printk_index_emit'
435 | if (__builtin_constant_p(_fmt) && __builtin_constant_p(_level)) { \
| ^
arch/loongarch/kernel/relocate.c:150:11: error: expected ')'
150 | pr_info(message, "nokaslr", "boot");
| ^
arch/loongarch/kernel/relocate.c:150:3: note: to match this '('
150 | pr_info(message, "nokaslr", "boot");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:444:32: note: expanded from macro '__printk_index_emit'
444 | .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
| ^
arch/loongarch/kernel/relocate.c:150:11: error: expected ')'
150 | pr_info(message, "nokaslr", "boot");
| ^
arch/loongarch/kernel/relocate.c:150:3: note: to match this '('
150 | pr_info(message, "nokaslr", "boot");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:444:41: note: expanded from macro '__printk_index_emit'
444 | .fmt = __builtin_constant_p(_fmt) ? (_fmt) : NULL, \
| ^
arch/loongarch/kernel/relocate.c:150:11: error: expected ')'
150 | pr_info(message, "nokaslr", "boot");
| ^
arch/loongarch/kernel/relocate.c:150:3: note: to match this '('
150 | pr_info(message, "nokaslr", "boot");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:483:10: note: expanded from macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^
arch/loongarch/kernel/relocate.c:173:11: error: expected ')'
173 | pr_info(message, "resume=", "built-in");
| ^
arch/loongarch/kernel/relocate.c:173:3: note: to match this '('
173 | pr_info(message, "resume=", "built-in");
| ^
include/linux/printk.h:584:2: note: expanded from macro 'pr_info'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/printk.h:511:26: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:482:3: note: expanded from macro 'printk_index_wrap'
482 | __printk_index_emit(_fmt, NULL, NULL); \
| ^
include/linux/printk.h:435:27: note: expanded from macro '__printk_index_emit'
435 | if (__builtin_constant_p(_fmt) && __builtin_constant_p(_level)) { \
vim +144 arch/loongarch/kernel/relocate.c
135
136 static inline __init bool kaslr_disabled(void)
137 {
138 char *str;
139 const char *builtin_cmdline = CONFIG_CMDLINE;
140 const char *const message = "KASLR is disabled by %s in %s cmdline.\n";
141
142 str = strstr(builtin_cmdline, "nokaslr");
143 if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' ')) {
> 144 pr_info(message, "nokaslr", "built-in");
145 return true;
146 }
147
148 str = strstr(boot_command_line, "nokaslr");
149 if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' ')) {
150 pr_info(message, "nokaslr", "boot");
151 return true;
152 }
153
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2026-04-13 8:30 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <E4B91143DC525DC6+20260403063008.94237-1-yangyuqian@uniontech.com>]
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=202604130224.WAbBNHnS-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhuacai@kernel.org \
--cc=guanwentao@uniontech.com \
--cc=kernel@xen0n.name \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=loongarch@lists.linux.dev \
--cc=niecheng1@uniontech.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yangyuqian@uniontech.com \
--cc=zhangdandan@uniontech.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox