diff options
author | Michal Simek <monstr@monstr.eu> | 2009-06-10 15:57:07 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-06-10 17:07:15 -0400 |
commit | 0e0c62123b517d2b3c26922342c0cc5bb63a93f8 (patch) | |
tree | 12de5174964661c1731cec7e3abd05980dfcf26d /fs/bio.c | |
parent | d9c7d394a8ebacb60097b192939ae9f15235225e (diff) |
fs/bio.c: add missing __user annotation
As reported by sparse:
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -722,7 +722,7 @@ static int __bio_copy_iov(struct bio *bio, struct bio_vec *iovecs, | |||
722 | 722 | ||
723 | while (bv_len && iov_idx < iov_count) { | 723 | while (bv_len && iov_idx < iov_count) { |
724 | unsigned int bytes; | 724 | unsigned int bytes; |
725 | char *iov_addr; | 725 | char __user *iov_addr; |
726 | 726 | ||
727 | bytes = min_t(unsigned int, | 727 | bytes = min_t(unsigned int, |
728 | iov[iov_idx].iov_len - iov_off, bv_len); | 728 | iov[iov_idx].iov_len - iov_off, bv_len); |