From: Arnd Bergmann Date: Mon, 30 Apr 2012 13:18:46 +0000 (+0000) Subject: ARM: warnings in arch/arm/include/asm/uaccess.h X-Git-Tag: v3.7-rc3~28^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e7fc18b5eacc37b6e6fcf486ec4eafbfef91738;p=pandora-kernel.git 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 Acked-by: Greg Ungerer Cc: Russell King --- Reading git-diff-tree failed