Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2075717imu; Fri, 23 Nov 2018 04:21:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/WpVpezYCZdN4aQbDGUzQW7EVsj0yiQU4MP/xbpb0iXCyCc+h28gh0ZfwQMbW4Zfj9C30Mj X-Received: by 2002:a63:66c6:: with SMTP id a189mr13893930pgc.167.1542975719533; Fri, 23 Nov 2018 04:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542975719; cv=none; d=google.com; s=arc-20160816; b=IL6blJWyVAEIeDdo2sGPETiWabRULZEOfvwjuwBOpeXPV9j25nYytCUw3sjB9mWx1f 75pW/QhTprWAWXnE9B68Yru4ivnT7y5zhOYYbPb6vQNe8IsJRTC7w/+OW7W4jhwADvcG fpjByKZeWh+K1vC8NbNyM2ZGTN6JPH+yWYa5UZeAqT2Bws8FuYrrHvWrP1iWlRAtu5E9 3fRvFQ2ax6knFtin7IKhcvNKKdojWLBYT3BE0dp3+QY4Vk3KHET3lazWG4H/CWE1MPPX U8meNCvsiSEg/mu9p8G8ou2m63lpSn+MFfjs4gBHbuP+Do+JToXBWgAFFcqNZbBuvTm6 B37g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dRiYMIUednuIfQfeppP8giB2MXTsNS8bx6NiRVsNR6M=; b=i8ym5QNw/9/c/1pJT+15FeyiLZ6rUC9Wjoh6SnZmyq1R7ARc4U/9xd95hPwRHVF5fU nPeJTVofUwxRe1nLkEj0dyatVjr7cCdMlErMVVYnkShYYKtPHmQ+YIQqml5u829DFLDE 9ThbCwgk/DREX36VEEpVX1tEaMo0/E+Ml5vmYdufs+dnGSvExXKCW/fDwPJMOqVWH4dc As1dugHa1jzwTUXqvGkk3OFvKtrY4zjlQ5ao+wz1LEvacsUs42KZbu+daoGxPpjt8As6 4Kd6eo2BEDrGjwELtq9zzYdkbY4cDX90TWhs83119NWH6E7HZvZAdkfkvlr24AxCsxiW b52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="ZEU/BCJ9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si8624144pgm.462.2018.11.23.04.21.45; Fri, 23 Nov 2018 04:21:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="ZEU/BCJ9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394634AbeKVVyB (ORCPT + 99 others); Thu, 22 Nov 2018 16:54:01 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52256 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbeKVVyA (ORCPT ); Thu, 22 Nov 2018 16:54:00 -0500 Received: by mail-wm1-f66.google.com with SMTP id r11-v6so8535107wmb.2; Thu, 22 Nov 2018 03:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=dRiYMIUednuIfQfeppP8giB2MXTsNS8bx6NiRVsNR6M=; b=ZEU/BCJ9GcItUr/ENvduuRnJtH4SVnseFdpWMKTukpThLozU3z11pVjbIm9/o1vbke k8iFVgqMx25OX/LmP/DAe8/srjIDPqsswXFzy3a5aF1zjlE+2MKcniSHmnh9v8Oyw7ND VmVwebhy4QLolpbeUPVltauitdJYC0oztTpgWPG0t5qvaa7e8ZiqrjBs0GBUpfcPghU/ cePhbcyZymqCMSUEqnSV3zqrQtriVYjavgmSEu3AXZcAksDnZn+l9SznyU12KJRAaip4 mbR2f66UxzKdLAgYnqg1TMMcZAVZ6fHp6967Zt8WQDETeaDwiz01J9hiEDKcIIByAh/d SF3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=dRiYMIUednuIfQfeppP8giB2MXTsNS8bx6NiRVsNR6M=; b=YSdgDZvfDnqxMSpBmC+5XPnACaU0XNY/M2IA3nlir91V1XJfZp1Me+WhxTyPj6s50e NmdOzqzzBu46NxOKK29mULrWODaaGwnUb0+7pyDenbNvC20d56rNY+I9m/Yi0GERQgkR gqrlgAK7GcRz7beM3mKas0Jb0KoYRHVr+Lw39EsmyzmbdVay8iB5QPa2n8v3gYNoxY8i D4kddslaEtpw5iYVs6BvuQRlWgolsZV/pDdEglzbWESW7vOMU+OhbAFt1iPBwIHY9VxW c57bp4/OgCihFakVQxUjpaMk9wV44/WwHFik1G7siolWc4/WmQt/6bwmoEmzo4YH2Pm9 6eGQ== X-Gm-Message-State: AGRZ1gIEz/m+XIOafilV7VhdZi/TjmMgCHUIH1PH4CEwBBaOdaQj1YuU aQyF0ThSHRXhMyJq8nZVClkjpWgH X-Received: by 2002:a1c:702:: with SMTP id 2-v6mr9355747wmh.113.1542885303023; Thu, 22 Nov 2018 03:15:03 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id n15sm20926974wrt.21.2018.11.22.03.15.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Nov 2018 03:15:02 -0800 (PST) Date: Thu, 22 Nov 2018 12:14:58 +0100 From: Ingo Molnar To: wang.yi59@zte.com.cn Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, ard.biesheuvel@linaro.org, linux-efi@vger.kernel.org, pbonzini@redhat.com, rkrcmar@redhat.com, kvm@vger.kernel.org, jgross@suse.com, akataria@vmware.com, virtualization@lists.linux-foundation.org, m.mizuma@jp.fujitsu.com, peterz@infradead.org, prarit@redhat.com, douly.fnst@cn.fujitsu.com, dwmw@amazon.co.uk, luto@kernel.org, pasha.tatashin@oracle.com, rajvi.jingar@intel.com, zhe.he@windriver.com, akpm@linux-foundation.org, dyoung@redhat.com, takahiro.akashi@linaro.org, ebiederm@xmission.com, bhe@redhat.com, ivan.gorinov@intel.com, robh@kernel.org, andy.shevchenko@gmail.com, frank.rowand@sony.com, jan.kiszka@siemens.com, jailhouse-dev@googlegroups.com, konrad.wilk@oracle.com, thomas.lendacky@amd.com, pravin.shedge4linux@gmail.com, namit@vmware.com, jroedel@suse.de, bhelgaas@google.com, linux-pci@vger.kernel.org, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, rostedt@goodmis.org, kexec@lists.infradead.org, robh+dt@kernel.org, frowand.list@gmail.com, devicetree@vger.kernel.org, oleg@redhat.com, zhong.weidong@zte.com.cn, up2wing@gmail.com Subject: Re: [PATCH] x86: fix -Wmissing-prototypes warning Message-ID: <20181122111458.GA107823@gmail.com> References: <20181122084815.GA84118@gmail.com> <201811221904598072830@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201811221904598072830@zte.com.cn> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * wang.yi59@zte.com.cn wrote: > Hi Ingo, > > > * Yi Wang wrote: > > > > > We may get -Wmissing-prototypes warnings when building > > > kernel with W=1, it's better to fix them as global function > > > signature can be changed and caller who use the old unchanged > > > prototypes will be hosed. > > > > > > This patch fixes most of -Wmissing-prototypes warnings which > > > are in the root directory of arch/x86/kernel, not including > > > the subdirectories. > > > > > > These are the warnings fixed in this patch: > > > arch/x86/kernel/signal.c:865:17: warning: no previous prototype for ‘sys32_x32_rt_sigreturn’ [-Wmissing-prototypes] > > ...... > > > > include/linux/ftrace.h | 3 +++ > > > include/linux/kexec.h | 1 + > > > include/linux/of_fdt.h | 1 + > > > include/linux/ptrace.h | 1 + > > > 24 files changed, 55 insertions(+), 3 deletions(-) > > > > Breaks 32-bit compilation: > > > > ../arch/x86/include/asm/setup.h: Assembler messages: > > ../arch/x86/include/asm/setup.h:30: Error: no such instruction: `unsigned long __startup_64(unsigned long physaddr,struct boot_params *bp)' > > > > I'll skip the setup.h bits - let's hope that's the only bug. > > Sorry for the inconvenience, though I have checked carefully :-) > > How do you produce this error? I tested this way but did not reproduce > that error: > # make allmodconfig > # make -j8 > > Thanks for your time again! I don't remember the exact config, but you could try the 32-bit allnoconfig and defconfig. Note that the commands you used above will use the 64-bit kernel, not the 32-bit kernel. Thanks, Ingo