diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 3c62ed4084922c4f01977bb48ceb18ab4ce805d8..78a702ce4fcb0e194c6f8483d4f79631a4d932ad 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; }