Return-Path: Received: from palrel13.hp.com ([156.153.255.238]:27548 "EHLO palrel13.hp.com") by vger.kernel.org with ESMTP id S264586AbUEDTPn (ORCPT ); Tue, 4 May 2004 15:15:43 -0400 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16535.60380.254878.301569@napali.hpl.hp.com> Date: Tue, 4 May 2004 12:15:40 -0700 Subject: Re: static DEFINE_PER_CPU vs. modules In-Reply-To: <20040504120317.36d45341.akpm@osdl.org> References: <200405031741.52504.arnd@arndb.de> <20040503193835.72c62ad8.akpm@osdl.org> <200405041617.37371.arnd@arndb.de> <16535.50431.820664.953078@napali.hpl.hp.com> <20040504120317.36d45341.akpm@osdl.org> Reply-To: davidm@hpl.hp.com To: Andrew Morton Cc: davidm@hpl.hp.com, arnd@arndb.de, rusty@rustcorp.com.au, linux-arch@vger.kernel.org, epasch@de.ibm.com, hare@suse.de List-ID: >>>>> On Tue, 4 May 2004 12:03:17 -0700, Andrew Morton said: Andrew> We can certainly live with this workaround I'll bet that sooner or later someone would do a source-code review and find that the per-CPU variables in question are only used in one file and then "fix" that by adding back the static. Andrew> but it would be nice to find something better. per-module Andrew> per-cpu data sections? I had something rather simpler in mind: just a macro that expands into "static" for the normal case and nothing for s390x. --david