lkml.org 
[lkml]   [2006]   [May]   [30]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
 
Messages in this thread
Patch in this message
/
DateWed, 31 May 2006 00:18:17 +0400
FromAlexey Dobriyan <>
Subject[PATCH] blktrace_api.h: endian annotations
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
 include/linux/blktrace_api.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -89,13 +89,13 @@ struct blk_io_trace {
 
 /*
  * The remap event
  */
 struct blk_io_trace_remap {
-	u32 device;
+	__be32 device;
 	u32 __pad;
-	u64 sector;
+	__be64 sector;
 };
 
 enum {
 	Blktrace_setup = 1,
 	Blktrace_running,
@@ -223,11 +223,11 @@ static inline void blk_add_trace_generic
  **/
 static inline void blk_add_trace_pdu_int(struct request_queue *q, u32 what,
 					 struct bio *bio, unsigned int pdu)
 {
 	struct blk_trace *bt = q->blk_trace;
-	u64 rpdu = cpu_to_be64(pdu);
+	__be64 rpdu = cpu_to_be64(pdu);
 
 	if (likely(!bt))
 		return;
 
 	if (bio)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-30 22:20    [from the cache]
©2003-2008