diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-08-10 00:19:02 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-10 03:44:58 (GMT) |
commit | 627295e492638936e76f3d8fcb1e0a3367b88341 (patch) | |
tree | 94ef884e0e248fef8de4b5605a67812191cd3762 /include | |
parent | 67a8a20fe1eec43ebfa7f2b83e988dbdb4c16271 (diff) | |
download | linux-fsl-qoriq-627295e492638936e76f3d8fcb1e0a3367b88341.tar.xz |
gcc-4.6: pagemap: avoid unused-but-set variable
Avoid quite a lot of warnings in header files in a gcc 4.6 -Wall builds
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pagemap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 3c62ed4..78a702c 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -423,8 +423,10 @@ static inline int fault_in_pages_readable(const char __user *uaddr, int size) const char __user *end = uaddr + size - 1; if (((unsigned long)uaddr & PAGE_MASK) != - ((unsigned long)end & PAGE_MASK)) + ((unsigned long)end & PAGE_MASK)) { ret = __get_user(c, end); + (void)c; + } } return ret; } |