KVM: ia64: fix sparse warnings
authorJeff Mahoney <jeffm@suse.com>
Wed, 27 Apr 2011 18:06:07 +0000 (14:06 -0400)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:57 +0000 (08:39 -0400)
This patch fixes some sparse warning about "dubious one-bit signed bitfield."

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Originally-by: Jan Blunck <jblunck@suse.de>
Signed-off-by: Jan Blunck <jblunck@suse.de>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/vti.h

index f6c5617e16af85dd246e4fde9cd403898a89cdb2..b214b5b0432da6d3f119edf9500922fce8e95c06 100644 (file)
 union vac {
        unsigned long value;
        struct {
-               int a_int:1;
-               int a_from_int_cr:1;
-               int a_to_int_cr:1;
-               int a_from_psr:1;
-               int a_from_cpuid:1;
-               int a_cover:1;
-               int a_bsw:1;
+               unsigned int a_int:1;
+               unsigned int a_from_int_cr:1;
+               unsigned int a_to_int_cr:1;
+               unsigned int a_from_psr:1;
+               unsigned int a_from_cpuid:1;
+               unsigned int a_cover:1;
+               unsigned int a_bsw:1;
                long reserved:57;
        };
 };
@@ -97,12 +97,12 @@ union vac {
 union vdc {
        unsigned long value;
        struct {
-               int d_vmsw:1;
-               int d_extint:1;
-               int d_ibr_dbr:1;
-               int d_pmc:1;
-               int d_to_pmd:1;
-               int d_itm:1;
+               unsigned int d_vmsw:1;
+               unsigned int d_extint:1;
+               unsigned int d_ibr_dbr:1;
+               unsigned int d_pmc:1;
+               unsigned int d_to_pmd:1;
+               unsigned int d_itm:1;
                long reserved:58;
        };
 };