Arnd Bergmann 8e7fc18b5e ARM: warnings in arch/arm/include/asm/uaccess.h
On NOMMU ARM, the __addr_ok() and __range_ok() macros do not evaluate
their arguments, which may lead to harmless build warnings in some
code where the variables are not used otherwise. Adding a cast to void
gets rid of the warning and does not make any semantic changes.

Without this patch, building at91x40_defconfig results in:

fs/read_write.c: In function 'rw_copy_check_uvector':
fs/read_write.c:684:9: warning: unused variable 'buf' [-Wunused-variable]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
2012-10-09 20:29:07 +02:00
..
2012-10-07 20:55:16 +09:00
2012-10-09 20:24:24 +02:00
2012-10-01 18:28:06 -07:00
2012-10-07 07:13:01 +09:00
2012-10-07 20:55:16 +09:00
2012-09-14 13:37:32 +00:00
2012-10-09 20:29:01 +02:00