From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v3] powerpc/traps: Enhance readability for trap types
Date: Fri, 09 Apr 2021 00:54:34 +0800 [thread overview]
Message-ID: <202104090042.TPzAVoHu-lkp@intel.com> (raw)
In-Reply-To: <20210408140750.26832-1-sxwjean@me.com>
[-- Attachment #1: Type: text/plain, Size: 5804 bytes --]
Hi Xiongwei,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on next-20210408]
[cannot apply to hnaz-linux-mm/master v5.12-rc6]
[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]
url: https://github.com/0day-ci/linux/commits/Xiongwei-Song/powerpc-traps-Enhance-readability-for-trap-types/20210408-221152
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc64-randconfig-r004-20210408 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/d9dd965937ed76338a90b73b94190499a98cb5d1
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xiongwei-Song/powerpc-traps-Enhance-readability-for-trap-types/20210408-221152
git checkout d9dd965937ed76338a90b73b94190499a98cb5d1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:10,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/powerpc/kernel/process.c:14:
arch/powerpc/kernel/process.c: In function '__show_regs':
>> arch/powerpc/kernel/process.c:1473:14: error: 'INTERRUPT_MACHINE_CHECK' undeclared (first use in this function); did you mean 'TAINT_MACHINE_CHECK'?
1473 | if (trap == INTERRUPT_MACHINE_CHECK ||
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/powerpc/kernel/process.c:1473:2: note: in expansion of macro 'if'
1473 | if (trap == INTERRUPT_MACHINE_CHECK ||
| ^~
arch/powerpc/kernel/process.c:1473:14: note: each undeclared identifier is reported only once for each function it appears in
1473 | if (trap == INTERRUPT_MACHINE_CHECK ||
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/powerpc/kernel/process.c:1473:2: note: in expansion of macro 'if'
1473 | if (trap == INTERRUPT_MACHINE_CHECK ||
| ^~
--
In file included from include/linux/kernel.h:10,
from arch/powerpc/xmon/xmon.c:10:
arch/powerpc/xmon/xmon.c: In function 'excprint':
>> arch/powerpc/xmon/xmon.c:1778:14: error: 'INTERRUPT_MACHINE_CHECK' undeclared (first use in this function); did you mean 'TAINT_MACHINE_CHECK'?
1778 | trap == INTERRUPT_MACHINE_CHECK) {
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/powerpc/xmon/xmon.c:1773:2: note: in expansion of macro 'if'
1773 | if (trap == INTERRUPT_DATA_STORAGE ||
| ^~
arch/powerpc/xmon/xmon.c:1778:14: note: each undeclared identifier is reported only once for each function it appears in
1778 | trap == INTERRUPT_MACHINE_CHECK) {
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/powerpc/xmon/xmon.c:1773:2: note: in expansion of macro 'if'
1773 | if (trap == INTERRUPT_DATA_STORAGE ||
| ^~
vim +1473 arch/powerpc/kernel/process.c
1458
1459 static void __show_regs(struct pt_regs *regs)
1460 {
1461 int i, trap;
1462
1463 printk("NIP: "REG" LR: "REG" CTR: "REG"\n",
1464 regs->nip, regs->link, regs->ctr);
1465 printk("REGS: %px TRAP: %04lx %s (%s)\n",
1466 regs, regs->trap, print_tainted(), init_utsname()->release);
1467 printk("MSR: "REG" ", regs->msr);
1468 print_msr_bits(regs->msr);
1469 pr_cont(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer);
1470 trap = TRAP(regs);
1471 if (!trap_is_syscall(regs) && cpu_has_feature(CPU_FTR_CFAR))
1472 pr_cont("CFAR: "REG" ", regs->orig_gpr3);
> 1473 if (trap == INTERRUPT_MACHINE_CHECK ||
1474 trap == INTERRUPT_DATA_STORAGE ||
1475 trap == INTERRUPT_ALIGNMENT) {
1476 if (IS_ENABLED(CONFIG_4xx) || IS_ENABLED(CONFIG_BOOKE))
1477 pr_cont("DEAR: "REG" ESR: "REG" ", regs->dar, regs->dsisr);
1478 else
1479 pr_cont("DAR: "REG" DSISR: %08lx ", regs->dar, regs->dsisr);
1480 }
1481
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27902 bytes --]
next prev parent reply other threads:[~2021-04-08 16:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 14:07 [PATCH v3] powerpc/traps: Enhance readability for trap types Xiongwei Song
2021-04-08 14:07 ` Xiongwei Song
2021-04-08 16:54 ` kernel test robot [this message]
2021-04-09 16:14 ` Christophe Leroy
2021-04-09 16:14 ` Christophe Leroy
2021-04-09 17:45 ` Segher Boessenkool
2021-04-09 17:45 ` Segher Boessenkool
2021-04-10 0:04 ` Michael Ellerman
2021-04-10 0:04 ` Michael Ellerman
2021-04-10 8:33 ` Xiongwei Song
2021-04-10 8:33 ` Xiongwei Song
2021-04-10 9:42 ` Christophe Leroy
2021-04-10 9:42 ` Christophe Leroy
2021-04-10 16:46 ` Segher Boessenkool
2021-04-10 16:46 ` Segher Boessenkool
2021-04-10 8:31 ` Xiongwei Song
2021-04-10 8:31 ` Xiongwei Song
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=202104090042.TPzAVoHu-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.