linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.13-rc6-mm2] v9fs: remove sparse bitwise warnings
@ 2005-08-28 22:25 Eric Van Hensbergen
  0 siblings, 0 replies; only message in thread
From: Eric Van Hensbergen @ 2005-08-28 22:25 UTC (permalink / raw)
  To: Linux FS Devel, V9FS Developers, Linux Kernel, Andrew Morton

[PATCH] v9fs: remove sparse bitwise warnings

Fixed a bunch of cast conversions to remove -Wbitwise warnings from
sparse.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>

---
commit fec4b0831dba7e27e9531d0566eec1a5646f3e79
tree dfc14f433354a8dcdb049bc8137e7f31d7cbda3e
parent 67fefd3d8da2c41c41dfd9cd69765b74e246f31f
author Eric Van Hensbergen <ericvh@gmail.com> Sun, 28 Aug 2005 17:23:47
-0500
committer Eric Van Hensbergen <ericvh@gmail.com> Sun, 28 Aug 2005
17:23:47 -0500

 fs/9p/conv.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs/9p/conv.c b/fs/9p/conv.c
--- a/fs/9p/conv.c
+++ b/fs/9p/conv.c
@@ -88,7 +88,7 @@ static inline void buf_put_int16(struct 
 {
 	buf_check_size(buf, 2);
 
-	*(u16 *) buf->p = cpu_to_le16(val);
+	*(__le16 *) buf->p = cpu_to_le16(val);
 	buf->p += 2;
 }
 
@@ -96,7 +96,7 @@ static inline void buf_put_int32(struct 
 {
 	buf_check_size(buf, 4);
 
-	*(u32 *)buf->p = cpu_to_le32(val);
+	*(__le32 *)buf->p = cpu_to_le32(val);
 	buf->p += 4;
 }
 
@@ -104,7 +104,7 @@ static inline void buf_put_int64(struct 
 {
 	buf_check_size(buf, 8);
 
-	*(u64 *)buf->p = cpu_to_le64(val);
+	*(__le64 *)buf->p = cpu_to_le64(val);
 	buf->p += 8;
 }
 
@@ -147,7 +147,7 @@ static inline u16 buf_get_int16(struct c
 	u16 ret = 0;
 
 	buf_check_size(buf, 2);
-	ret = le16_to_cpu(*(u16 *)buf->p);
+	ret = le16_to_cpu(*(__le16 *)buf->p);
 
 	buf->p += 2;
 
@@ -159,7 +159,7 @@ static inline u32 buf_get_int32(struct c
 	u32 ret = 0;
 
 	buf_check_size(buf, 4);
-	ret = le32_to_cpu(*(u32 *)buf->p);
+	ret = le32_to_cpu(*(__le32 *)buf->p);
 
 	buf->p += 4;
 
@@ -171,7 +171,7 @@ static inline u64 buf_get_int64(struct c
 	u64 ret = 0;
 
 	buf_check_size(buf, 8);
-	ret = le64_to_cpu(*(u64 *)buf->p);
+	ret = le64_to_cpu(*(__le64 *)buf->p);
 
 	buf->p += 8;
 

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

only message in thread, other threads:[~2005-08-28 22:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-28 22:25 [PATCH 2.6.13-rc6-mm2] v9fs: remove sparse bitwise warnings Eric Van Hensbergen

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).