Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753809AbbGSQXJ (ORCPT ); Sun, 19 Jul 2015 12:23:09 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:36657 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753047AbbGSQXE (ORCPT ); Sun, 19 Jul 2015 12:23:04 -0400 From: Mathias Krause To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Mathias Krause , "Rafael J. Wysocki" , Paul Gortmaker Subject: [PATCH 1/5] x86, ACPI: Get rid of the acpi_map_cpu() wrapper Date: Sun, 19 Jul 2015 18:22:50 +0200 Message-Id: <1437322974-11081-2-git-send-email-minipli@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1437322974-11081-1-git-send-email-minipli@googlemail.com> References: <1437322974-11081-1-git-send-email-minipli@googlemail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 46 The __cpuinit annotation was dropped from acpi_processor_set_pdc() in commit fe7bf106ebc2 ("acpi: delete __cpuinit usage from all acpi files"), vanishing the need for the __ref annotated acpi_map_cpu() wrapper. Signed-off-by: Mathias Krause Cc: "Rafael J. Wysocki" Cc: Paul Gortmaker --- arch/x86/kernel/acpi/boot.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index e49ee24da85e..75e8bad53798 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -710,7 +710,7 @@ static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) #endif } -static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) +int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu) { int cpu; @@ -726,12 +726,6 @@ static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) *pcpu = cpu; return 0; } - -/* wrapper to silence section mismatch warning */ -int __ref acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu) -{ - return _acpi_map_lsapic(handle, physid, pcpu); -} EXPORT_SYMBOL(acpi_map_cpu); int acpi_unmap_cpu(int cpu) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/