Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29729
b: refs/heads/master
c: 74bb6a0
h: refs/heads/master
i:
  29727: 86af5e0
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 25, 2006
1 parent 73e64b0 commit ee6f2a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69755652c92106855b4b096b7c2935b59e6252c6
refs/heads/master: 74bb6a09b2e1e69d91eb6069eb4a7f0c06b84812
13 changes: 13 additions & 0 deletions trunk/include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,17 @@
#endif
#endif

#define WARN_ON_ONCE(condition) \
({ \
static int __warn_once = 1; \
int __ret = 0; \
\
if (unlikely((condition) && __warn_once)) { \
__warn_once = 0; \
WARN_ON(1); \
__ret = 1; \
} \
__ret; \
})

#endif

0 comments on commit ee6f2a0

Please sign in to comment.