Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbbLRXHz (ORCPT ); Fri, 18 Dec 2015 18:07:55 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43576 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbbLRXHy (ORCPT ); Fri, 18 Dec 2015 18:07:54 -0500 Date: Fri, 18 Dec 2015 15:07:53 -0800 From: Andrew Morton To: Sudip Mukherjee Cc: linux-kernel@vger.kernel.org, Chris Wilson , Ingo Molnar , Stephen Rothwell Subject: Re: [PATCH] Revert "kernel/stop_machine.c: remove CONFIG_SMP dependencies" Message-Id: <20151218150753.6fa343f146682f17800c3b0a@linux-foundation.org> In-Reply-To: <1450433155-31615-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1450433155-31615-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1359 Lines: 44 On Fri, 18 Dec 2015 15:35:55 +0530 Sudip Mukherjee wrote: > This reverts commit 64dab25b058c12f935794cb239089303bda7dbc1. > > CONFIG_SMP dependency is needed for some arch like tile, tilegx and > m32r. They use stop_machine() but they donot have HOTPLUG_CPU and as a > result their builds are failing with "undefined symbol 'stop_machine'". Thanks. I had my &&'s and ||'s mixed up. I did this: --- a/kernel/stop_machine.c~kernel-stop_machinec-remove-config_smp-dependencies-fix +++ a/kernel/stop_machine.c @@ -531,8 +531,6 @@ static int __init cpu_stop_init(void) } early_initcall(cpu_stop_init); -#ifdef CONFIG_HOTPLUG_CPU - static int __stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) { struct multi_stop_data msdata = { @@ -630,5 +628,3 @@ int stop_machine_from_inactive_cpu(cpu_s mutex_unlock(&stop_cpus_mutex); return ret ?: done.ret; } - -#endif /* CONFIG_HOTPLUG_CPU */ _ Rationale: stop_machine.o is only built when CONFIG_SMP=y so #if defined(CONFIG_SMP) || defined(CONFIG_HOTPLUG_CPU) always evaluates to true, so remove it. -- 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/