mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] __be'ify include/linux/nbd.h
@ 2005-02-18 13:28 Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-02-18 13:28 UTC (permalink / raw)
  To: Al Viro; +Cc: Paul Clements, linux-kernel

Fix sparse warnings in drivers/block/nbd.c

Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>

Index: linux-warnings/include/linux/nbd.h
===================================================================
--- linux-warnings/include/linux/nbd.h	(revision 22)
+++ linux-warnings/include/linux/nbd.h	(revision 23)
@@ -68,11 +68,11 @@
  * server. All data are in network byte order.
  */
 struct nbd_request {
-	u32 magic;
-	u32 type;	/* == READ || == WRITE 	*/
+	__be32 magic;
+	__be32 type;	/* == READ || == WRITE 	*/
 	char handle[8];
-	u64 from;
-	u32 len;
+	__be64 from;
+	__be32 len;
 }
 #ifdef __GNUC__
 	__attribute__ ((packed))
@@ -84,8 +84,8 @@
  * it has completed an I/O request (or an error occurs).
  */
 struct nbd_reply {
-	u32 magic;
-	u32 error;		/* 0 = ok, else error	*/
+	__be32 magic;
+	__be32 error;		/* 0 = ok, else error	*/
 	char handle[8];		/* handle you got from request	*/
 };
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-18 12:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 13:28 [PATCH] __be'ify include/linux/nbd.h Alexey Dobriyan

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

all inboxes | Powered by JetHome®