Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932598AbdCaHZr (ORCPT ); Fri, 31 Mar 2017 03:25:47 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:39493 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754287AbdCaHZq (ORCPT ); Fri, 31 Mar 2017 03:25:46 -0400 Date: Fri, 31 Mar 2017 09:25:35 +0200 (CEST) From: Thomas Gleixner To: Dmitry Safonov cc: kbuild test robot , kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com Subject: Re: [tip:WIP.x86/mm 1/1] arch/x86/kernel/process_64.c:541:35: error: '__NR_ia32_execve' undeclared In-Reply-To: Message-ID: References: <201703301754.uKyz1CYf%fengguang.wu@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 31 On Thu, 30 Mar 2017, Dmitry Safonov wrote: > > vim +/__NR_ia32_execve +541 arch/x86/kernel/process_64.c > > > > 535 set_thread_flag(TIF_IA32); > > 536 clear_thread_flag(TIF_X32); > > 537 if (current->mm) > > 538 current->mm->context.ia32_compat = TIF_IA32; > > 539 current->personality |= force_personality32; > > 540 /* Prepare the first "return" to user space */ > > > 541 task_pt_regs(current)->orig_ax = __NR_ia32_execve; > > 542 current->thread.status |= TS_COMPAT; > > 543 #endif > > 544 } > > There was this chunk in the patch, maybe it could be done nicer, > but I didn't find the nicer way. > I checked it compilation/work with(out) ia32/x32/64-bit configs > before sending. Yeah, I know and it's just crap. WTF is wrong with: #ifdef CONFIG_IA32_EMULATION #include #endif It's not rocket science, really. Thanks, tglx