Commit bccd17294a26b67a8a19aaa120e3eeaa7da49281
Committed by
Linus Torvalds
1 parent
a429638cac
Exists in
master
and in
6 other branches
x86: Get rid of 'dubious one-bit signed bitfield' sprase warning
This very noisy sparse warning appears on almost every file in the kernel: CHECK init/main.c arch/x86/include/asm/thread_info.h:43:55: error: dubious one-bit signed bitfield arch/x86/include/asm/thread_info.h:44:46: error: dubious one-bit signed bitfield This patch changes sig_on_uaccess_error and uaccess_err flags to unsigned type and thus fixes the warning. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Andy Lutomirski <luto@mit.edu> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
arch/x86/include/asm/thread_info.h
... | ... | @@ -40,8 +40,8 @@ |
40 | 40 | */ |
41 | 41 | __u8 supervisor_stack[0]; |
42 | 42 | #endif |
43 | - int sig_on_uaccess_error:1; | |
44 | - int uaccess_err:1; /* uaccess failed */ | |
43 | + unsigned int sig_on_uaccess_error:1; | |
44 | + unsigned int uaccess_err:1; /* uaccess failed */ | |
45 | 45 | }; |
46 | 46 | |
47 | 47 | #define INIT_THREAD_INFO(tsk) \ |