Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63529
b: refs/heads/master
c: 8d4fbcf
h: refs/heads/master
i:
  63527: f61054f
v: v3
  • Loading branch information
Linus Torvalds committed Aug 1, 2007
1 parent cd4dee1 commit 6c3040d
Show file tree
Hide file tree
Showing 3 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: 2f63251ed0a803ddbe7bf2577b69d467aa872f68
refs/heads/master: 8d4fbcfbe0a4bfc73e7f0297c59ae514e1f1436f
6 changes: 3 additions & 3 deletions trunk/include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct bug_entry {

#ifndef HAVE_ARCH_WARN_ON
#define WARN_ON(condition) ({ \
typeof(condition) __ret_warn_on = (condition); \
int __ret_warn_on = !!(condition); \
if (unlikely(__ret_warn_on)) { \
printk("WARNING: at %s:%d %s()\n", __FILE__, \
__LINE__, __FUNCTION__); \
Expand All @@ -54,15 +54,15 @@ struct bug_entry {

#ifndef HAVE_ARCH_WARN_ON
#define WARN_ON(condition) ({ \
typeof(condition) __ret_warn_on = (condition); \
int __ret_warn_on = !!(condition); \
unlikely(__ret_warn_on); \
})
#endif
#endif

#define WARN_ON_ONCE(condition) ({ \
static int __warned; \
typeof(condition) __ret_warn_once = (condition); \
int __ret_warn_once = !!(condition); \
\
if (unlikely(__ret_warn_once)) \
if (WARN_ON(!__warned)) \
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
} while (0)

#define WARN_ON(x) ({ \
typeof(x) __ret_warn_on = (x); \
int __ret_warn_on = !!(x); \
if (__builtin_constant_p(__ret_warn_on)) { \
if (__ret_warn_on) \
__WARN(); \
Expand Down

0 comments on commit 6c3040d

Please sign in to comment.