Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19814
b: refs/heads/master
c: 911b0ad
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Linus Torvalds committed Feb 5, 2006
1 parent a25993f commit 1715cb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: b53e8f68e07fb8f3ba9ab1812c9c186c09a50c16
refs/heads/master: 911b0ad25d167fede6aadc05065b414ec7ab5086
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ struct alt_instr {
#define smp_rmb() rmb()
#define smp_wmb() wmb()
#define smp_read_barrier_depends() read_barrier_depends()
#define set_mb(var, value) do { xchg(&var, value); } while (0)
#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
#else
#define smp_mb() barrier()
#define smp_rmb() barrier()
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
#define wmb() asm volatile("" ::: "memory")
#endif
#define read_barrier_depends() do {} while(0)
#define set_mb(var, value) do { xchg(&var, value); } while (0)
#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
#define set_wmb(var, value) do { var = value; wmb(); } while (0)

#define warn_if_not_ulong(x) do { unsigned long foo; (void) (&(x) == &foo); } while (0)
Expand Down

0 comments on commit 1715cb7

Please sign in to comment.