diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-01-07 14:17:23 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-02-14 15:55:00 +0100 |
commit | 7292e7e01cc98fa04a9a3eb7ca11d1bca99c35e9 (patch) | |
tree | ae71ffdf66ab42c176aba2cacbf019d5a17a0e4f /drivers/s390 | |
parent | 323a72d83c9b2963bd1e46c8e6963e468d4658d7 (diff) | |
download | linux-7292e7e01cc98fa04a9a3eb7ca11d1bca99c35e9.tar.bz2 |
asm-generic/io.h: convert readX defines to functions
E.g. readl is defined like this
#define readl(addr) __le32_to_cpu(__raw_readl(addr))
If a there is a readl() call that doesn't check the return value
this will cause a compile warning on big endian machines due to
the __le32_to_cpu macro magic.
E.g. code like this:
readl(addr);
will generate the following compile warning:
warning: value computed is not used [-Wunused-value]
With this patch we get rid of dozens of compile warnings on s390.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions