Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5172687imu; Tue, 13 Nov 2018 02:17:49 -0800 (PST) X-Google-Smtp-Source: AJdET5cftDK8s4Yx28NjdZEC9BELwzl9sdvBqVZ7jndzobRQaCO4X0a4it6NbBvXhfxWNZkeuZ4d X-Received: by 2002:a65:63d3:: with SMTP id n19mr4241364pgv.179.1542104269846; Tue, 13 Nov 2018 02:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542104269; cv=none; d=google.com; s=arc-20160816; b=TNFmmRko1ZQujQwVBEtPRShKt5EYVCc/zm3G96A3ofnmSzf1voAFUL2c9vvuXLezUF aypIySVBFRj7ndsRKW0bJadc+6/vGhMKpw7geuDZe0aKKmAMCj9ncqNCmQMk9HvvtPsD DCXrtvSTLypwVEXF/3dUVqIS7YYMVD+SdSO0iiKz4Boz0PuZgr3H4ytABto8vw9ggXEk uxsQTR2RLHVvSxn/jRsHL7Y6Uk+UJb0xG+t2fMsq2Tw42FNtWnPRWPYUMiq3x9BN7UlA y/ucKaRzYF+z4QQHIdL4ut6AIr2R05jEvHhbtjnrANiYukixI5aIojHkygalt4wsTY3Q dvow== 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; bh=FqOV2aahEJAW+3WyPbfpO9bUNRKBeKxpnewZ3wcb92w=; b=pAin9RUSDqKgBLht7MRV0pb1GFugUP11rNVezJBJLu5zbctVpQp7wipKfOiyTFSk2s 4nCA895lUblC6Z9H1eBr2y81NeCRTRxTFY4L4V49xF8P8ZGhLlV2lWnAH/PCDxrrSIEJ y7klkDxP5MroMnc6IApiWYnJ57VwsWFm8OzMkF4blYPEnVFalAAsF3VP21WtBM/n85zG uZ/WdTqsUF5D2Uq4DRODc+hKzX3y8+l8PeNYa65g9gfj/EMfZcqbUmDs1TdZRcag+NT1 +G80XUOw3LXKSGwoEjBWRAUZ+DG3XNDVgqVSAHUghdoDb7PYDrcRsUKOU3mVnAJ8+t5d kcNA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11-v6si20469339pln.425.2018.11.13.02.17.34; Tue, 13 Nov 2018 02:17:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732052AbeKMUO2 (ORCPT + 99 others); Tue, 13 Nov 2018 15:14:28 -0500 Received: from mail.skyhub.de ([5.9.137.197]:59906 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731708AbeKMUO2 (ORCPT ); Tue, 13 Nov 2018 15:14:28 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id c-rJV_2d9e5V; Tue, 13 Nov 2018 11:17:01 +0100 (CET) Received: from zn.tnic (p200300EC2BE56F00D5714500C00E26FD.dip0.t-ipconnect.de [IPv6:2003:ec:2be5:6f00:d571:4500:c00e:26fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 960C01EC00CD; Tue, 13 Nov 2018 11:17:01 +0100 (CET) Date: Tue, 13 Nov 2018 11:17:01 +0100 From: Borislav Petkov To: Yi Wang Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, bp@suse.de Subject: Re: [PATCH] x86/irq: Fix -Wmissing-prototypes warning for init_IRQ() Message-ID: <20181113101701.GB10502@zn.tnic> References: <1542074189-3208-1-git-send-email-wang.yi59@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1542074189-3208-1-git-send-email-wang.yi59@zte.com.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 09:56:29AM +0800, Yi Wang wrote: > We get a warning when building kernel with W=1: > arch/x86/kernel/irqinit.c:79:13: warning: no previous prototype for ‘init_IRQ’ [-Wmissing-prototypes] > void __init init_IRQ(void) > ^ > > Add the missing declaration in head file to fix this. > > Signed-off-by: Yi Wang > --- > arch/x86/include/asm/irq.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h > index 2395bb7..399a9c5 100644 > --- a/arch/x86/include/asm/irq.h > +++ b/arch/x86/include/asm/irq.h > @@ -41,6 +41,8 @@ static inline int irq_canonicalize(int irq) > > extern void init_ISA_irqs(void); > > +extern void __init init_IRQ(void); > + > #ifdef CONFIG_X86_LOCAL_APIC > void arch_trigger_cpumask_backtrace(const struct cpumask *mask, > bool exclude_self); > -- I'm not sure we should do one patch per warning - that's too granulary. What I did earlier was this: make allmodconfig make W=1 arch/x86/kernel/apic/ and then looked at all those -Wmissing-prototypes warnings. Once I've fixed them, I commit the result as a x86/apic: Fix -Wmissing-prototypes warnings and this way it is more or less per subsystem or folder or whatever, which still keeps the amount of patches sane for further handling. Now, I did some fixes here so I'd suggest you do all your patches ontop of tip/master after merging this branch into it: https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=tip-ras-core I'll push it into tip the next days. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.