Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2655171imu; Tue, 6 Nov 2018 19:33:35 -0800 (PST) X-Google-Smtp-Source: AJdET5dtp2kKcd1vWyW7HQiYDsabWKp6ATHgVziWmbYI+Ls7MmH6OByOx3V4yjhiwFDhKAbfVGyc X-Received: by 2002:a63:b81a:: with SMTP id p26mr189758pge.433.1541561614939; Tue, 06 Nov 2018 19:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541561614; cv=none; d=google.com; s=arc-20160816; b=Vz1F7xOvR6KsXCtvVLV+Q2Lr7+iu3MtnQEJkb3ZuNDJG+/G6lwgFwHpwR0YWrXfC0z KH8zOLokD1w4PfIfDulbq9j1Ln7GV599m3X/c6QjbWgnIbyv8+xyXy64s8BWSQ3oIQd/ C0SRB+pAvjcRY+3jY17gZLo4m9ZMXGpP/SZOuckek88Tk1D6xoaG27iseLtgwFsq0uh3 MK3KfVcPg4Tu7OwWoD5u9gPC8RBJLnoYjYGmPQX871bB1l/NxyyYOlymKeuC/iWpswE5 isUXwQNJVXFm6GAkz/fZpEXPKFWdl44NR8Jh7Vkol7/vrNfcALcoJntzHVygZdUnVto+ 4Rug== 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=TAPSUxOO7ExLEVmqfQm+Lhsc5TFU4oVlFTJpaJSgjRA=; b=bitwVUsiyPRo1l5NAExNnr+OX/2PF9xe4IOq6XOqsaXPyhw/CXRyu3VhDoBcaIryMx JvmuT1LFXHJ5BdGuM1pASv5WXa6EOVUt0PVFyImyxUOMqrSakIixP77cbige6pLyUlmR 8bB9+V9qNafyjttCUU9hZ2tgqSObQfjRp4LfEI+2dbTROQ0tuY6WzCFtyKzZ7hp6v3+b HJKnQIOIvbfk75T6YtfS8kM/qDPZrwQ1jFpmwrWqxn75n4PhInZnALnhod16sDcnp0nX UahF4rf9pTBq77Yiadhukku2llH/LVPFKpX9R/R/epsLpshczJiT9EOeKtEWEd3c3vw0 cNrw== 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 u9-v6si48283103pls.150.2018.11.06.19.33.19; Tue, 06 Nov 2018 19:33:34 -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 S1727246AbeKGM7Z convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Nov 2018 07:59:25 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:40988 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbeKGM7Z (ORCPT ); Wed, 7 Nov 2018 07:59:25 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 24C2BE1CC6FCDF7699CC; Wed, 7 Nov 2018 11:30:54 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wA73Ul02002684; Wed, 7 Nov 2018 11:30:47 +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 2018110711310776-9096906 ; Wed, 7 Nov 2018 11:31:07 +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 Subject: [PATCH] x86/irq: fix build warning in irq.c Date: Wed, 7 Nov 2018 11:32:37 +0800 Message-Id: <1541561557-42247-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-07 11:31:07, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-07 11:30:40 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wA73Ul02002684 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following warnings: arch/x86/kernel/irq.c:270:28: warning: no previous prototype for ‘smp_x86_platform_ipi’ [-Wmissing-prototypes] __visible void __irq_entry smp_x86_platform_ipi(struct pt_regs *regs) ^ arch/x86/kernel/irq.c:301:16: warning: no previous prototype for ‘smp_kvm_posted_intr_ipi’ [-Wmissing-prototypes] __visible void smp_kvm_posted_intr_ipi(struct pt_regs *regs) ^ arch/x86/kernel/irq.c:314:16: warning: no previous prototype for ‘smp_kvm_posted_intr_wakeup_ipi’ [-Wmissing-prototypes] __visible void smp_kvm_posted_intr_wakeup_ipi(struct pt_regs *regs) ^ arch/x86/kernel/irq.c:328:16: warning: no previous prototype for ‘smp_kvm_posted_intr_nested_ipi’ [-Wmissing-prototypes] __visible void smp_kvm_posted_intr_nested_ipi(struct pt_regs *regs) ^ Signed-off-by: Yi Wang --- arch/x86/include/asm/irq.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index 2395bb7..4c9855a 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h @@ -30,6 +30,9 @@ static inline int irq_canonicalize(int irq) #ifdef CONFIG_HAVE_KVM extern void kvm_set_posted_intr_wakeup_handler(void (*handler)(void)); +extern __visible void smp_kvm_posted_intr_ipi(struct pt_regs *regs); +extern __visible void smp_kvm_posted_intr_wakeup_ipi(struct pt_regs *regs); +extern __visible void smp_kvm_posted_intr_nested_ipi(struct pt_regs *regs); #endif extern void (*x86_platform_ipi_callback)(void); @@ -44,6 +47,8 @@ static inline int irq_canonicalize(int irq) #ifdef CONFIG_X86_LOCAL_APIC void arch_trigger_cpumask_backtrace(const struct cpumask *mask, bool exclude_self); + +extern __visible void smp_x86_platform_ipi(struct pt_regs *regs); #define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace #endif -- 1.8.3.1