From 536ce50d59be1b80999fb7e6838a2f0d86b5ade4 Mon Sep 17 00:00:00 2001 From: "Mitchell Blank Jr." Date: Mon, 22 Sep 2003 22:55:07 -0700 Subject: [SPARC]: Make atomic_read() take const. --- include/asm-sparc/atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/asm-sparc/atomic.h b/include/asm-sparc/atomic.h index dcc5cd732e1c..aa298155a8d3 100644 --- a/include/asm-sparc/atomic.h +++ b/include/asm-sparc/atomic.h @@ -33,9 +33,9 @@ typedef struct { volatile int counter; } atomic_t; * 31 8 7 0 */ -#define ATOMIC_INIT(i) { (i << 8) } +#define ATOMIC_INIT(i) { ((i) << 8) } -static __inline__ int atomic_read(atomic_t *v) +static __inline__ int atomic_read(const atomic_t *v) { int ret = v->counter; -- cgit v1.2.3