diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2012-01-10 20:11:46 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-01-16 03:39:54 -0500 |
commit | f10448689d95b9516c656ccd4078839e656656e7 (patch) | |
tree | 4545284197cf09630ad55307268b653c53c791f4 | |
parent | 8030c36d13f030103356709e63638678fdc66fdc (diff) |
x86: Get rid of dubious one-bit signed bitfield
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
Sparse is right and 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>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: Dan Carpenter <error27@gmail.com>
Link: http://lkml.kernel.org/r/20120111011146.GA30428@oksana.dev.rtsoft.ru
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/thread_info.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 185b719ec61a..56a63ff7665e 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h | |||
@@ -40,8 +40,8 @@ struct thread_info { | |||
40 | */ | 40 | */ |
41 | __u8 supervisor_stack[0]; | 41 | __u8 supervisor_stack[0]; |
42 | #endif | 42 | #endif |
43 | int sig_on_uaccess_error:1; | 43 | unsigned int sig_on_uaccess_error:1; |
44 | int uaccess_err:1; /* uaccess failed */ | 44 | unsigned int uaccess_err:1; /* uaccess failed */ |
45 | }; | 45 | }; |
46 | 46 | ||
47 | #define INIT_THREAD_INFO(tsk) \ | 47 | #define INIT_THREAD_INFO(tsk) \ |