lkml.org 
[lkml]   [2009]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 6/9 UPDATED] percpu: enforce global definition
From
Date

On Thu, 2009-06-18 at 16:38 +0900, Tejun Heo wrote:
> Some archs (alpha and s390) need to add 'weak' attribute to percpu
> variable definitions so that the compiler generates external
> references for them. To allow this, enforce global definition of all
> percpu variables.
>
> This patch makes DEFINE_PER_CPU_SECTION() do DECLARE_PERCPU_SECTION()
> implicitly and drop static from all percpu definitions.
>
> [ Impact: all percpu variables are forced to be global ]
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

Uh, wont this cause name space collisions?

-- Steve




\
 
 \ /
  Last update: 2009-06-18 15:41    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site