Commit 536ce50d authored by Mitchell Blank Jr's avatar Mitchell Blank Jr Committed by David S. Miller

[SPARC]: Make atomic_read() take const.

parent b35670bf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment