Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162966
b: refs/heads/master
c: 08a4081
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Sep 14, 2009
1 parent 0f9f372 commit a5707a0
Show file tree
Hide file tree
Showing 2 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: 60ba77022712c7cda0eda286154bae160446b24a
refs/heads/master: 08a408161749d2406f94f4e3d47cfdbc826ad1cc
6 changes: 3 additions & 3 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@ static int rb_head_page_set(struct ring_buffer_per_cpu *cpu_buffer,

val &= ~RB_FLAG_MASK;

ret = (unsigned long)cmpxchg(&list->next,
val | old_flag, val | new_flag);
ret = cmpxchg((unsigned long *)&list->next,
val | old_flag, val | new_flag);

/* check if the reader took the page */
if ((ret & ~RB_FLAG_MASK) != val)
Expand Down Expand Up @@ -794,7 +794,7 @@ static int rb_head_page_replace(struct buffer_page *old,
val = *ptr & ~RB_FLAG_MASK;
val |= RB_PAGE_HEAD;

ret = cmpxchg(ptr, val, &new->list);
ret = cmpxchg(ptr, val, (unsigned long)&new->list);

return ret == val;
}
Expand Down

0 comments on commit a5707a0

Please sign in to comment.