From: monstr@monstr.eu
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, Michal Simek <monstr@monstr.eu>
Subject: [PATCH] fs: Remove sparse errors in bio.c
Date: Fri, 1 May 2009 16:33:22 +0200 [thread overview]
Message-ID: <1241188402-19332-1-git-send-email-monstr@monstr.eu> (raw)
From: Michal Simek <monstr@monstr.eu>
fs/bio.c:720:13: warning: incorrect type in assignment (different address spaces)
fs/bio.c:720:13: expected char *iov_addr
fs/bio.c:720:13: got void [noderef] <asn:1>*
fs/bio.c:724:36: warning: incorrect type in argument 2 (different address spaces)
fs/bio.c:724:36: expected void const [noderef] <asn:1>*from
fs/bio.c:724:36: got char *iov_addr
Signed-off-by: Michal Simek <monstr@monstr.eu>
---
fs/bio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/bio.c b/fs/bio.c
index e0c9e54..9e795e2 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -713,7 +713,7 @@ static int __bio_copy_iov(struct bio *bio, struct bio_vec *iovecs,
while (bv_len && iov_idx < iov_count) {
unsigned int bytes;
- char *iov_addr;
+ char __user *iov_addr;
bytes = min_t(unsigned int,
iov[iov_idx].iov_len - iov_off, bv_len);
--
1.5.5.1
next reply other threads:[~2009-05-01 14:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-01 14:33 monstr [this message]
2009-05-02 1:34 ` Bullshit commit messages (Re: [PATCH] fs: Remove sparse errors in bio.c) 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=1241188402-19332-1-git-send-email-monstr@monstr.eu \
--to=monstr@monstr.eu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®