Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754027AbbGSQXN (ORCPT ); Sun, 19 Jul 2015 12:23:13 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:34927 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753756AbbGSQXJ (ORCPT ); Sun, 19 Jul 2015 12:23:09 -0400 From: Mathias Krause To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Mathias Krause , Paul Gortmaker Subject: [PATCH 5/5] x86, topology: Drop bogus __ref annotations Date: Sun, 19 Jul 2015 18:22:54 +0200 Message-Id: <1437322974-11081-6-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: 1683 Lines: 44 In commit 5c113fbeed7a ("fix cpu_chain section mismatch...") cpu_chain lost its __cpuinitdata annotation. This and the global __cpuinit annotation drop in v3.11 vanished the need to mark all users, including transitive ones like cpu_up(), with the __ref annotation. register_cpu() lost its __cpuinit annotation in commit ia83048ebd449 ("drivers: delete __cpuinit usage from all remaining drivers files"), allowing us to drop the __ref annotation of _debug_hotplug_cpu() and arch_register_cpu(). Signed-off-by: Mathias Krause Cc: Paul Gortmaker --- arch/x86/kernel/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index 649b010da00b..12cbe2b88c0f 100644 --- a/arch/x86/kernel/topology.c +++ b/arch/x86/kernel/topology.c @@ -57,7 +57,7 @@ __setup("cpu0_hotplug", enable_cpu0_hotplug); * * This is only called for debugging CPU offline/online feature. */ -int __ref _debug_hotplug_cpu(int cpu, int action) +int _debug_hotplug_cpu(int cpu, int action) { struct device *dev = get_cpu_device(cpu); int ret; @@ -104,7 +104,7 @@ static int __init debug_hotplug_cpu(void) late_initcall_sync(debug_hotplug_cpu); #endif /* CONFIG_DEBUG_HOTPLUG_CPU0 */ -int __ref arch_register_cpu(int num) +int arch_register_cpu(int num) { struct cpuinfo_x86 *c = &cpu_data(num); -- 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/