summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2002-05-30 21:13:35 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-05-30 21:13:35 -0700
commite4086edc43d89dda905b697a5eb24016c45fdcec (patch)
tree659348ea7ed0cda4deedb2b6aa94e96c0442e3ba
parentc583dc5934f564c7db979a7854d70af6e85e7605 (diff)
[PATCH] softirq.c per_cpu fix
GCC3.1 apparently gets confused about uninitialized sections
-rw-r--r--kernel/softirq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c
index 208bc9c645b1..330108bd9a2a 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -151,8 +151,10 @@ struct tasklet_head
struct tasklet_struct *list;
};
-static struct tasklet_head tasklet_vec __per_cpu_data;
-static struct tasklet_head tasklet_hi_vec __per_cpu_data;
+/* Some compilers disobey section attribute on statics when not
+ initialized -- RR */
+static struct tasklet_head tasklet_vec __per_cpu_data = { NULL };
+static struct tasklet_head tasklet_hi_vec __per_cpu_data = { NULL };
void __tasklet_schedule(struct tasklet_struct *t)
{