perf/x86: Make bitfield unsigned
authorPeter Zijlstra <[email protected]>
Mon, 9 Jul 2012 11:50:23 +0000 (13:50 +0200)
committerIngo Molnar <[email protected]>
Thu, 26 Jul 2012 10:23:13 +0000 (12:23 +0200)
Fix:

 arch/x86/kernel/cpu/perf_event.h:377:43: sparse: dubious one-bit signed bitfield

Cc: Borislav Petkov <[email protected]>
Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event.h

index a15df4be151fc924e3cf8a9b25ab18c991c0b58c..821d53b696d1408fb1b71faffda28283052d9733 100644 (file)
@@ -374,7 +374,7 @@ struct x86_pmu {
        /*
         * Intel DebugStore bits
         */
-       int             bts             :1,
+       unsigned int    bts             :1,
                        bts_active      :1,
                        pebs            :1,
                        pebs_active     :1,