public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: Remove sparse errors in bio.c
@ 2009-05-01 14:33 monstr
  2009-05-02  1:34 ` Bullshit commit messages (Re: [PATCH] fs: Remove sparse errors in bio.c) Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: monstr @ 2009-05-01 14:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, Michal Simek

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-02  1:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-01 14:33 [PATCH] fs: Remove sparse errors in bio.c monstr
2009-05-02  1:34 ` Bullshit commit messages (Re: [PATCH] fs: Remove sparse errors in bio.c) Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox