Skip to content

Commit bccd172

Browse files
enomsgtorvalds
authored andcommitted
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 <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent a429638 commit bccd172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/include/asm/thread_info.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ struct thread_info {
4040
*/
4141
__u8 supervisor_stack[0];
4242
#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 */
4545
};
4646

4747
#define INIT_THREAD_INFO(tsk) \

0 commit comments

Comments
 (0)