Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4802805imu; Mon, 12 Nov 2018 17:56:58 -0800 (PST) X-Google-Smtp-Source: AJdET5ffccRXreI0bahOUSlahcyY1UZb7yrUthdpOsd5Xe7UVGF8QVJekEAyuKb4zuAG2+JQXact X-Received: by 2002:a63:f34b:: with SMTP id t11mr2976256pgj.341.1542074218231; Mon, 12 Nov 2018 17:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542074218; cv=none; d=google.com; s=arc-20160816; b=RB4aakvfbDZxxHN/Q1gRft6QLCkj80yY29ynvQ7/Qk+goIGQNIE1e3WOctI2eR3jwG zsuZ8mo3OYVCPQ28m0USCeVXu0Y1FAxYYU73oOTWXFPmLScm3r8TFyzxMB4Wz+Yk2e0Q NoyUgAEeSU/ugQXMqzfwybpRJf1yEWaNvQqIRldUY5DznF8gtnaw5MJJBR1i2lI1saxe hQSpggoeYDckD2dZF92nPL2oeq7+wd/51ARVHSjw9DO6T961QyNqPOmWq23q/9CILLwo YxgiLd2kxSrP03q65L0Cky/AD5O4/5x2YZGHdzXQpMmWhuiCROAd2EPaloSpeZmHS8m0 er0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NKajuW85kLxl1nx+4STl+U6TWOZFexmjGep+DA/vcwE=; b=YDC7q1ObRel1ZceorDkVkUdNXpOOiKkNaXyL/La+PoDx24LgXOzIUadFfRREnuu6pr 9VP0c0XYnoOVMN5nwfNkRmtqw790ZNxtHd7U7CtplX6mZpelwsnk4ic/DmTGM9+VfNLy mQmQIgllyQeSB0SNmMCYC5UDCcxEBljk8IoKDCEILrXJ0RSyU5H09PMHVH1/Pn3/96Xd mJFve9qItXb6RpY5Y+g7q79Wn/XS3NfwN65Pnnw2NJttOHXtTn0Dt23CQC/9mVMBNmS0 rM3HhGL+8B8IZs7KyHtZKVXzZB1HETGPRVvkvLCm53rxtw3SDre2wvqEOUBh++uF4Rx3 OTkQ== 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 a4-v6si23442733pll.50.2018.11.12.17.56.42; Mon, 12 Nov 2018 17:56:58 -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 S1730643AbeKMLuk convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Nov 2018 06:50:40 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:34354 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbeKMLuj (ORCPT ); Tue, 13 Nov 2018 06:50:39 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 7103665A020BC664B8D4; Tue, 13 Nov 2018 09:54:47 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wAD1siwI083379; Tue, 13 Nov 2018 09:54:44 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018111309545505-10299766 ; Tue, 13 Nov 2018 09:54:55 +0800 From: Yi Wang To: tglx@linutronix.de Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, wang.yi59@zte.com.cn, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, bp@suse.de Subject: [PATCH] x86/irq: Fix -Wmissing-prototypes warning for init_IRQ() Date: Tue, 13 Nov 2018 09:56:29 +0800 Message-Id: <1542074189-3208-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-11-13 09:54:55, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-13 09:54:40 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wAD1siwI083379 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 1.8.3.1