Skip to contentSkip to conversation

target-moxie: Fix warnings from Sparse (one-bit signed bitfield)

PATCH Applied Stefan Weil 2 participants 2 messages Mar 8, 2015 – Mar 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-moxie: Fix warnings from Sparse (one-bit signed bitfield)

Report from Sparse:

target-moxie/mmu.h:9:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:10:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:11:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:12:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:13:12: error: dubious one-bit signed bitfield

---
 target-moxie/mmu.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
target-moxie/mmu.h +5 -5
index e01ffc2..abc7929 100644
@@ -6,11 +6,11 @@
 typedef struct {
     uint32_t phy;
     uint32_t pfn;
-    int g:1;
-    int v:1;
-    int k:1;
-    int w:1;
-    int e:1;
+    unsigned g:1;
+    unsigned v:1;
+    unsigned k:1;
+    unsigned w:1;
+    unsigned e:1;
     int cause_op;
 } MoxieMMUResult;
 
Signature · 1 line
2.1.4