fix INIT_SIGHAND warning on mips
PATCH 1/1 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)
include/linux/init_task.h +4 -4
@@ -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;