* [PATCH] fix INIT_SIGHAND warning on mips
@ 2005-01-19 11:19 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-01-19 11:19 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-19 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-19 11:19 [PATCH] fix INIT_SIGHAND warning on mips Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox