[PATCH 4/4] powerpc: machine check interrupt is a non-maskable interrupt
kbuild test robot
lkp at intel.com
Fri Jul 7 04:13:02 AEST 2017
Hi Nicholas,
[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.12 next-20170706]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/machine-check-handling-improvements/20170706-181843
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc
All errors (new ones prefixed by >>):
arch/powerpc/kernel/traps.c: In function 'machine_check_exception':
>> arch/powerpc/kernel/traps.c:788:13: error: passing argument 1 of 'nmi_panic' from incompatible pointer type [-Werror=incompatible-pointer-types]
nmi_panic("Unrecoverable Machine check");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/bug.h:15:0,
from arch/powerpc/include/asm/bug.h:127,
from include/linux/bug.h:4,
from arch/powerpc/include/asm/mmu.h:125,
from arch/powerpc/include/asm/lppaca.h:36,
from arch/powerpc/include/asm/paca.h:21,
from arch/powerpc/include/asm/current.h:16,
from include/linux/sched.h:11,
from arch/powerpc/kernel/traps.c:19:
include/linux/kernel.h:271:6: note: expected 'struct pt_regs *' but argument is of type 'char *'
void nmi_panic(struct pt_regs *regs, const char *msg);
^~~~~~~~~
>> arch/powerpc/kernel/traps.c:788:3: error: too few arguments to function 'nmi_panic'
nmi_panic("Unrecoverable Machine check");
^~~~~~~~~
In file included from include/asm-generic/bug.h:15:0,
from arch/powerpc/include/asm/bug.h:127,
from include/linux/bug.h:4,
from arch/powerpc/include/asm/mmu.h:125,
from arch/powerpc/include/asm/lppaca.h:36,
from arch/powerpc/include/asm/paca.h:21,
from arch/powerpc/include/asm/current.h:16,
from include/linux/sched.h:11,
from arch/powerpc/kernel/traps.c:19:
include/linux/kernel.h:271:6: note: declared here
void nmi_panic(struct pt_regs *regs, const char *msg);
^~~~~~~~~
cc1: all warnings being treated as errors
--
arch/powerpc/platforms/powernv/opal.c: In function 'opal_machine_check':
>> arch/powerpc/platforms/powernv/opal.c:452:12: error: passing argument 1 of 'nmi_panic' from incompatible pointer type [-Werror=incompatible-pointer-types]
nmi_panic("Unrecoverable Machine Check exception");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/list.h:8:0,
from include/linux/kobject.h:20,
from include/linux/of.h:21,
from arch/powerpc/platforms/powernv/opal.c:16:
include/linux/kernel.h:271:6: note: expected 'struct pt_regs *' but argument is of type 'char *'
void nmi_panic(struct pt_regs *regs, const char *msg);
^~~~~~~~~
>> arch/powerpc/platforms/powernv/opal.c:452:2: error: too few arguments to function 'nmi_panic'
nmi_panic("Unrecoverable Machine Check exception");
^~~~~~~~~
In file included from include/linux/list.h:8:0,
from include/linux/kobject.h:20,
from include/linux/of.h:21,
from arch/powerpc/platforms/powernv/opal.c:16:
include/linux/kernel.h:271:6: note: declared here
void nmi_panic(struct pt_regs *regs, const char *msg);
^~~~~~~~~
arch/powerpc/platforms/powernv/opal.c:453:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
vim +/nmi_panic +788 arch/powerpc/kernel/traps.c
782 goto bail;
783
784 die("Machine check", regs, SIGBUS);
785
786 /* Must die if the interrupt is not recoverable */
787 if (!(regs->msr & MSR_RI))
> 788 nmi_panic("Unrecoverable Machine check");
789
790 bail:
791 if (!nested)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 23338 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20170707/cb0086e9/attachment-0001.gz>
More information about the Linuxppc-dev
mailing list