]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86: Get rid of 'dubious one-bit signed bitfield' sprase warning
authorAnton Vorontsov <cbouatmailru@gmail.com>
Wed, 11 Jan 2012 01:11:46 +0000 (05:11 +0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Jan 2012 17:32:21 +0000 (09:32 -0800)
commitbccd17294a26b67a8a19aaa120e3eeaa7da49281
tree4a6933f0a86343e22930dcd2bc0d9225a97da3a3
parenta429638cac1e5c656818a45aaff78df7b743004e
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>
arch/x86/include/asm/thread_info.h