[PATCH] fix INIT_SIGHAND warning on mips

From: Christoph Hellwig
Date: Wed Jan 19 2005 - 06:21:19 EST


sa_handler isn't the first member of struct sigaction on mips.
Use C99 initializers to avoid a compiler warning. (There don't
seem to be more serious problems as mips worked with that warning
for ages)


--- 1.33/include/linux/init_task.h 2005-01-05 03:48:20 +01:00
+++ edited/include/linux/init_task.h 2005-01-16 11:55:59 +01:00
@@ -54,10 +54,10 @@
.rlim = INIT_RLIMITS, \
}

-#define INIT_SIGHAND(sighand) { \
- .count = ATOMIC_INIT(1), \
- .action = { {{NULL,}}, }, \
- .siglock = SPIN_LOCK_UNLOCKED, \
+#define INIT_SIGHAND(sighand) { \
+ .count = ATOMIC_INIT(1), \
+ .action = { { { .sa_handler = NULL, } }, }, \
+ .siglock = SPIN_LOCK_UNLOCKED, \
}

extern struct group_info init_groups;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/