]> git.hungrycats.org Git - linux/commitdiff
[PATCH] softirq.c per_cpu fix
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 31 May 2002 04:13:35 +0000 (21:13 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Fri, 31 May 2002 04:13:35 +0000 (21:13 -0700)
GCC3.1 apparently gets confused about uninitialized sections

kernel/softirq.c

index 208bc9c645b15a0e1d024f6d4f002da1a0a04937..330108bd9a2ab1cbde586e10ee2abfc7e698fc23 100644 (file)
@@ -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)
 {