summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-07-05 14:06:32 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-07-05 14:06:32 +0200
commitb89d607b590397c04b63d94a9e2fca9649917955 (patch)
tree288b79f253bcf20bf41b9291d80e2280c9fc7f98
parentARM: 7440/1: kprobes: only test 'sub pc, pc, #1b-2b+8-2' on ARMv6 (diff)
downloadlinux-b89d607b590397c04b63d94a9e2fca9649917955.tar.xz
linux-b89d607b590397c04b63d94a9e2fca9649917955.zip
ARM: fix warnings about atomic64_read
Fix: net/netfilter/xt_connbytes.c: In function 'connbytes_mt': net/netfilter/xt_connbytes.c:43: warning: passing argument 1 of 'atomic64_read' discards qualifiers from pointer target type ... by adding the missing const. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/include/asm/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/atomic.h b/arch/arm/include/asm/atomic.h
index 68374ba6a943..c79f61faa3a5 100644
--- a/arch/arm/include/asm/atomic.h
+++ b/arch/arm/include/asm/atomic.h
@@ -243,7 +243,7 @@ typedef struct {
#define ATOMIC64_INIT(i) { (i) }
-static inline u64 atomic64_read(atomic64_t *v)
+static inline u64 atomic64_read(const atomic64_t *v)
{
u64 result;