linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: Al Viro <viro@ftp.linux.org.uk>
Cc: linux-kernel@vger.kernel.org, Paul Clements <Paul.Clements@steeleye.com>
Subject: nbd: add endian annotations
Date: Fri, 23 Dec 2005 00:42:35 +0300	[thread overview]
Message-ID: <20051222214235.GA16883@mipter.zuzino.mipt.ru> (raw)
In-Reply-To: <20051222101523.GP27946@ftp.linux.org.uk>

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>

--- a/include/linux/nbd.h
+++ b/include/linux/nbd.h
@@ -68,11 +68,11 @@ struct nbd_device {
  * 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 @@ struct nbd_request {
  * 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


  parent reply	other threads:[~2005-12-22 21:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-22 10:15 [PATCHSET] 2.6.15-rc6-bird1 Al Viro
2005-12-22 11:25 ` Maciej Soltysiak
2005-12-22 21:42 ` Alexey Dobriyan [this message]
2005-12-22 21:47 ` [PATCH] aes: fix endian warnings Alexey Dobriyan
2005-12-22 22:12 ` [PATCH] serpent: " Alexey Dobriyan
2005-12-23  9:31 ` [PATCHSET] 2.6.15-rc6-bird2 Al Viro
2005-12-23 20:51   ` [PATCH] drivers/pcmcia/cistpl.c: fix endian warnings Alexey Dobriyan
2005-12-30  9:24     ` Dominik Brodowski
2005-12-24  9:51   ` [PATCHSET] 2.6.15-rc6-bird3 Al Viro
2005-12-25 20:14     ` [PATCHSET] 2.6.15-rc7-bird1 Al Viro
2005-12-29  4:38       ` Adrian Bunk
2006-02-04 11:27       ` [PATCHSET] 2.6.15-rc2-git1-bird1 Al Viro
2017-11-04  0:29       ` [PATCHSET] 2.6.15-rc7-bird1 Al Viro
2017-11-04  0:31         ` Al Viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051222214235.GA16883@mipter.zuzino.mipt.ru \
    --to=adobriyan@gmail.com \
    --cc=Paul.Clements@steeleye.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ftp.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).