Skip to contentSkip to conversation

synclink_gt endianness annotations

PATCH New Al Viro 1 participant 1 message Oct 14, 2007 Char and misc drivers

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 synclink_gt endianness annotations

---
 drivers/char/synclink_gt.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/char/synclink_gt.c +4 -4
index 2f97d2f..64e835f 100644
@@ -206,10 +206,10 @@ static void flush_cond_wait(struct cond_wait **head);
  */
 struct slgt_desc
 {
-	unsigned short count;
-	unsigned short status;
-	unsigned int pbuf;  /* physical address of data buffer */
-	unsigned int next;  /* physical address of next descriptor */
+	__le16 count;
+	__le16 status;
+	__le32 pbuf;  /* physical address of data buffer */
+	__le32 next;  /* physical address of next descriptor */
 
 	/* driver book keeping */
 	char *buf;          /* virtual  address of data buffer */
Signature · 1 line
1.5.3.GIT