[RFC,33/47] signal: use CONFIG_X86_32 instead of __i386__
diff mbox series

Message ID 119948eaca3e92c7bf92faf1a37722c1c21ecb88.1571798507.git.thehajime@gmail.com
State Superseded
Headers show
  • [RFC,01/47] asm-generic: atomic64: allow using generic atomic64 on 64bit platforms
Related show

Commit Message

Hajime Tazaki Oct. 23, 2019, 4:38 a.m. UTC
From: Octavian Purdila <tavi.purdila@gmail.com>

This allows um/lkl to build/run ?
[XXX: need to check if this requires or not]

Signed-off-by: Octavian Purdila <tavi.purdila@gmail.com>
 kernel/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/kernel/signal.c b/kernel/signal.c
index 534fec266a33..561de0e1e66a 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1241,7 +1241,7 @@  static void print_fatal_signal(int signr)
 	struct pt_regs *regs = signal_pt_regs();
 	pr_info("potentially unexpected fatal signal %d.\n", signr);
-#if defined(__i386__) && !defined(__arch_um__)
+#ifdef CONFIG_X86_32
 	pr_info("code at %08lx: ", regs->ip);
 		int i;