Skip to contentSkip to conversation

jbd.h jbd2.h: bitfields should be unsigned

PATCH New H Hartley Sweeten 1 participant 1 message Aug 5, 2009 Journalling layer for block devices (JBD2)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jbd.h jbd2.h: bitfields should be unsigned

bitfields should be unsigned.

This fixes sparse noise:
error: dubious one-bit signed bitfield

---

include/linux/jbd.h +1 -1
index c2049a0..f1edb76 100644
@@ -556,7 +556,7 @@ struct transaction_s
 	 * This transaction is being forced and some process is
 	 * waiting for it to finish.
 	 */
-	int t_synchronous_commit:1;
+	unsigned int t_synchronous_commit:1;
 };
 
 /**
include/linux/jbd2.h +1 -1
index d97eb65..52695d3 100644
@@ -652,7 +652,7 @@ struct transaction_s
 	 * This transaction is being forced and some process is
 	 * waiting for it to finish.
 	 */
-	int t_synchronous_commit:1;
+	unsigned int t_synchronous_commit:1;
 
 	/*
 	 * For use by the filesystem to store fs-specific data