Commit 439bed8b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] fix INIT_SIGHAND warning on mips

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)
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5efaaaac
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment