Received: by 10.223.164.202 with SMTP id h10csp3809900wrb; Mon, 20 Nov 2017 05:29:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ3vybwPVSZxs8ycdfFRasBIlA3EjLHJYrFF4Ycq2jv3zAKENg0dyirNKfaCbi8T8dD+QfA X-Received: by 10.101.90.71 with SMTP id z7mr6441460pgs.14.1511184542711; Mon, 20 Nov 2017 05:29:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511184542; cv=none; d=google.com; s=arc-20160816; b=N5yoFhkNbvqKTDEFROl/8yd2v1mNQAfhtnupKCp4CdlSw4nCWcy2PwUcEzghThX0+Y lmpEZ3TEx/14nd0D3psaQJxHAvQnU7mGEiIy7/i2pBpu1xXDvkbEWt0RDPOrPD2H/JFu lvkFP4hQB9Xz9z2UVYCA+/43wrAp1GPHTJTYTmVWkE8fZrPEVIZIOHdcLeArmQ/gWL+L ZF1xuDkjH5sl2TIG0m5hhWvnn+UOGNThkifI5JVW9bpke7h7WJpU8x/CjmWjGCbwzpyF 1WyI7ndzk1NIbSOeTbU6KS1eP31pjqjM0J5ysVKjLZEKHwX/hP1OZa8YKxumbfRU4Xlf Msrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=VXu0aNRfJDWftS/acq8W/bA3wJGf8B4c+6AaKHu80u8=; b=NKtsd7MSnIAo5H3lvCRSUrPXX/X0SGJpeJ1AJDl8ZvMDoCxeDl05+GB2Isk+82yDjy DL4TRiWvGpx47QAZJRnxvQODZ8e+IiR5602QGvfQIEAOXT8raQb0xR5yOv40eKaXFOxd 0e5Bx5Q5TFtMw4GTPPk5uMz+ePzuBVUwps+IRTBIfy8P2i8fjUwU2IQ0dZZ4VZ6f2PPn oJTmYdrl3jVyWpeu8569fhSguRQVeC628KFZp7FfPugTrLEJULsmAE4T7vG8RT1xCoZN PzYg4JidOQp2xY93IrXQ0HVU/CAt1C4/pP4bOy1AH/O6J+lby7bmLU1NCHX1sOOAAxbn kqYg== 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 i62si9158209pfj.336.2017.11.20.05.28.52; Mon, 20 Nov 2017 05:29:02 -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 S1751326AbdKTN1v (ORCPT + 66 others); Mon, 20 Nov 2017 08:27:51 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:22708 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751100AbdKTN1e (ORCPT ); Mon, 20 Nov 2017 08:27:34 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30314857" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 20 Nov 2017 21:27:30 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 6AF26487F162; Mon, 20 Nov 2017 21:27:27 +0800 (CST) Received: from localhost.localdomain.localdomain (10.167.226.106) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 20 Nov 2017 21:27:29 +0800 From: Dou Liyang To: , CC: , , , , , , Dou Liyang Subject: [PATCH 3/3] x86/apic: Make default_acpi_madt_oem_check void Date: Mon, 20 Nov 2017 21:27:12 +0800 Message-ID: <1511184432-28158-3-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1511184432-28158-1-git-send-email-douly.fnst@cn.fujitsu.com> References: <1511184432-28158-1-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 6AF26487F162.AF634 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org default_acpi_madt_oem_check() is just called when ACPI parse the MADT table and doesn't return anything. So make it void. also add identifier names for definition arguments. Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 2 +- arch/x86/kernel/apic/probe_32.c | 5 ++--- arch/x86/kernel/apic/probe_64.c | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index a9e57f0..34a24ac 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -492,7 +492,7 @@ static inline unsigned int read_apic_id(void) } extern int default_apic_id_valid(int apicid); -extern int default_acpi_madt_oem_check(char *, char *); +extern void default_acpi_madt_oem_check(char *oem_id, char *oem_table_id); extern void default_setup_apic_routing(void); extern u32 apic_default_calc_apicid(unsigned int cpu); diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c index fa22017..60e42b4 100644 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c @@ -228,7 +228,7 @@ void __init generic_apic_probe(void) } /* This function can switch the APIC even after the initial ->probe() */ -int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) +void __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) { struct apic **drv; @@ -243,7 +243,6 @@ int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) printk(KERN_INFO "Switched to APIC driver `%s'.\n", apic->name); } - return 1; + return; } - return 0; } diff --git a/arch/x86/kernel/apic/probe_64.c b/arch/x86/kernel/apic/probe_64.c index c303054..a7a88f6 100644 --- a/arch/x86/kernel/apic/probe_64.c +++ b/arch/x86/kernel/apic/probe_64.c @@ -53,7 +53,7 @@ void apic_send_IPI_self(int vector) __default_send_IPI_shortcut(APIC_DEST_SELF, vector, APIC_DEST_PHYSICAL); } -int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) +void __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) { struct apic **drv; @@ -64,8 +64,7 @@ int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) pr_info("Setting APIC routing to %s.\n", apic->name); } - return 1; + return; } } - return 0; } -- 2.5.5 From 1584592620225021039@xxx Mon Nov 20 13:41:23 +0000 2017 X-GM-THRID: 1580851933359812646 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread