login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
22
Re: initialization of static per-cpu variables
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
David Miller <davem@...>
To: <rusty@...>
Cc: <vegard.nossum@...>, <linux-kernel@...>
Subject:
Re: initialization of static per-cpu variables
Date: Thursday, May 22, 2008 - 12:12 pm
From: Rusty Russell <rusty@rustcorp.com.au> Date: Thu, 22 May 2008 18:20:06 +1000
quoted text
> On Thursday 22 May 2008 04:28:02 Vegard Nossum wrote: > > Hi, > > > > I encountered this comment in kernel/softirq.c: > > > > /* Some compilers disobey section attribute on statics when not > > initialized -- RR */ > > static DEFINE_PER_CPU(struct tasklet_head, tasklet_vec) = { NULL }; > > static DEFINE_PER_CPU(struct tasklet_head, tasklet_hi_vec) = { NULL }; > > > > So I assume it's the combination of static and whatever section > > DFINE_PER_CPU puts the variable in which is the problem. > > > > However, there's a LOT of these "static DEFINE_PER_CPU" without any > > initializer in the rest of the code, e.g.: > > Yep, it was an old toolchain used by Sparc: DaveM found this one. As you say, > it's ancient: I'm happy to queue a cleanup patch now everyone is on a modern > compiler.
Yes, that workaround certainly can die now. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
initialization of static per-cpu variables
, Vegard Nossum
, (Wed May 21, 2:28 pm)
Re: initialization of static per-cpu variables
, Rusty Russell
, (Thu May 22, 4:20 am)
Re: initialization of static per-cpu variables
, Adrian Bunk
, (Fri May 23, 10:29 am)
Re: initialization of static per-cpu variables
, Rusty Russell
, (Sun May 25, 6:35 am)
Re: initialization of static per-cpu variables
, Adrian Bunk
, (Mon Jun 2, 3:59 am)
Re: initialization of static per-cpu variables
, Rusty Russell
, (Mon Jun 2, 7:11 pm)
Re: initialization of static per-cpu variables
, Vegard Nossum
, (Fri May 23, 10:43 am)
Re: initialization of static per-cpu variables
, David Miller
, (Thu May 22, 12:12 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mark Lord
2.6.25-rc8: FTP transfer errors
Kamalesh Babulal
Re: 2.6.23-rc6-mm1
Greg Kroah-Hartman
[PATCH 025/196] paride: Convert from class_device to device for block/paride
Stephen Rothwell
Announce: Linux-next (Or Andrew's dream :-))
git
:
linux-netdev
:
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
David Miller
Re: [GIT]: Networking
Gerrit Renker
[PATCH 18/37] dccp: Support for Mandatory options
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
8 users
and
1059 guests
online.
Online users
zeekec
chihairproduct
substanceabuse
ladiesfootball
militarydating
ocroexjqwwuuuj
rewinder345
shrimpscampidb
Syndicate