From: Eric Van Hensbergen <ericvh@gmail.com>
To: Linux FS Devel <linux-fsdevel@vger.kernel.org>,
V9FS Developers <v9fs-developer@lists.sourceforge.net>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: [PATCH 2.6.13-rc6-mm2] v9fs: remove sparse bitwise warnings
Date: Sun, 28 Aug 2005 17:25:20 -0500 [thread overview]
Message-ID: <1125267920.15492.4.camel@localhost.localdomain> (raw)
[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;
reply other threads:[~2005-08-28 22:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1125267920.15492.4.camel@localhost.localdomain \
--to=ericvh@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=v9fs-developer@lists.sourceforge.net \
/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).