From: Andi Kleen Date: Tue, 10 Aug 2010 00:19:02 +0000 (-0700) Subject: gcc-4.6: pagemap: avoid unused-but-set variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=627295e492638936e76f3d8fcb1e0a3367b88341;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 3c62ed40849..78a702ce4fc 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; }