Commit 5ef73fa6 authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Make __SI_MASK explicitly unsigned, instead of depending on

magic C promotion to silently do so for us.
parent 8ffe0fb0
...@@ -106,7 +106,7 @@ typedef struct siginfo { ...@@ -106,7 +106,7 @@ typedef struct siginfo {
#define si_fd _sifields._sigpoll._fd #define si_fd _sifields._sigpoll._fd
#ifdef __KERNEL__ #ifdef __KERNEL__
#define __SI_MASK 0xffff0000 #define __SI_MASK 0xffff0000u
#define __SI_KILL (0 << 16) #define __SI_KILL (0 << 16)
#define __SI_TIMER (1 << 16) #define __SI_TIMER (1 << 16)
#define __SI_POLL (2 << 16) #define __SI_POLL (2 << 16)
......
...@@ -86,13 +86,13 @@ typedef unsigned long sigset_t; ...@@ -86,13 +86,13 @@ typedef unsigned long sigset_t;
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
* Unix names RESETHAND and NODEFER respectively. * Unix names RESETHAND and NODEFER respectively.
*/ */
#define SA_NOCLDSTOP 0x00000001 #define SA_NOCLDSTOP 0x00000001u
#define SA_NOCLDWAIT 0x00000002 #define SA_NOCLDWAIT 0x00000002u
#define SA_SIGINFO 0x00000004 #define SA_SIGINFO 0x00000004u
#define SA_ONSTACK 0x08000000 #define SA_ONSTACK 0x08000000u
#define SA_RESTART 0x10000000 #define SA_RESTART 0x10000000u
#define SA_NODEFER 0x40000000 #define SA_NODEFER 0x40000000u
#define SA_RESETHAND 0x80000000 #define SA_RESETHAND 0x80000000u
#define SA_NOMASK SA_NODEFER #define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND #define SA_ONESHOT SA_RESETHAND
......
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