Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176327
b: refs/heads/master
c: 42f247c
h: refs/heads/master
i:
  176325: b930462
  176323: 4716178
  176319: 350c463
v: v3
  • Loading branch information
Cesar Eduardo Barros authored and Linus Torvalds committed Dec 15, 2009
1 parent 51f64eb commit 00bbe59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 6613c5e8603bc41741487828f48c6a4d701f7814
refs/heads/master: 42f247c83aeb52d2ee7a9fe23fb57e22317f18fd
8 changes: 4 additions & 4 deletions trunk/include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,22 @@ extern void warn_slowpath_null(const char *file, const int line);
#endif

#define WARN_ON_ONCE(condition) ({ \
static int __warned; \
static bool __warned; \
int __ret_warn_once = !!(condition); \
\
if (unlikely(__ret_warn_once)) \
if (WARN_ON(!__warned)) \
__warned = 1; \
__warned = true; \
unlikely(__ret_warn_once); \
})

#define WARN_ONCE(condition, format...) ({ \
static int __warned; \
static bool __warned; \
int __ret_warn_once = !!(condition); \
\
if (unlikely(__ret_warn_once)) \
if (WARN(!__warned, format)) \
__warned = 1; \
__warned = true; \
unlikely(__ret_warn_once); \
})

Expand Down

0 comments on commit 00bbe59

Please sign in to comment.