Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319812
b: refs/heads/master
c: a119365
h: refs/heads/master
v: v3
  • Loading branch information
Tony Luck committed Jul 26, 2012
1 parent 9f7c3c2 commit 8d6cbf5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9445a382e3b9fdd21db41a4825ca1399cd0a3f4
refs/heads/master: a119365586b0130dfea06457f584953e0ff6481d
4 changes: 2 additions & 2 deletions trunk/arch/ia64/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <asm/intrinsics.h>


#define ATOMIC_INIT(i) ((atomic_t) { (i) })
#define ATOMIC64_INIT(i) ((atomic64_t) { (i) })
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC64_INIT(i) { (i) }

#define atomic_read(v) (*(volatile int *)&(v)->counter)
#define atomic64_read(v) (*(volatile long *)&(v)->counter)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/mspec.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ mspec_mmap(struct file *file, struct vm_area_struct *vma,
vdata->flags = flags;
vdata->type = type;
spin_lock_init(&vdata->lock);
vdata->refcnt = ATOMIC_INIT(1);
atomic_set(&vdata->refcnt, 1);
vma->vm_private_data = vdata;

vma->vm_flags |= (VM_IO | VM_RESERVED | VM_PFNMAP | VM_DONTEXPAND);
Expand Down

0 comments on commit 8d6cbf5

Please sign in to comment.