public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drbd: change one-bit bitfield to be an unsigned int
@ 2014-06-14 23:07 Martin Kepplinger
  2014-06-15  0:45 ` [PATCH v2] " Martin Kepplinger
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Kepplinger @ 2014-06-14 23:07 UTC (permalink / raw)
  To: drbd-dev; +Cc: drbd-user, linux-kernel, Martin Kepplinger

The one-bit bitfield has no negative values and thus becomes an
unsigned int.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
---
No idea if you take such small changes. Please ignore if not.
This applies to next-20140613 and fixes a sparse error.


 drivers/block/drbd/drbd_interval.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/drbd/drbd_interval.h b/drivers/block/drbd/drbd_interval.h
index f38fcb0..68b4301 100644
--- a/drivers/block/drbd/drbd_interval.h
+++ b/drivers/block/drbd/drbd_interval.h
@@ -9,8 +9,8 @@ struct drbd_interval {
 	sector_t sector;	/* start sector of the interval */
 	unsigned int size;	/* size in bytes */
 	sector_t end;		/* highest interval end in subtree */
-	int local:1		/* local or remote request? */;
-	int waiting:1;
+	unsigned int local:1		/* local or remote request? */;
+	unsigned int waiting:1;
 };
 
 static inline void drbd_clear_interval(struct drbd_interval *i)
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-18  5:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-14 23:07 [PATCH] drbd: change one-bit bitfield to be an unsigned int Martin Kepplinger
2014-06-15  0:45 ` [PATCH v2] " Martin Kepplinger
2014-06-16  9:28   ` David Rientjes
2014-06-17  6:54     ` Martin Kepplinger
2014-06-17 10:53       ` [Drbd-dev] " Lars Ellenberg
2014-06-17 19:46       ` David Rientjes
2014-06-18  5:50         ` Martin Kepplinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox