Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63539
b: refs/heads/master
c: b562548
h: refs/heads/master
i:
  63537: 8c6ce9a
  63535: e9dbcdf
v: v3
  • Loading branch information
Linus Torvalds committed Aug 2, 2007
1 parent 128274f commit 7117837
Show file tree
Hide file tree
Showing 6 changed files with 14 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: 4761c06cb39011c9cc3fef9e6bbfb4c50ceb307d
refs/heads/master: b5625481832ef1ab1a8e31fac0b1d14acdbbc148
2 changes: 1 addition & 1 deletion trunk/include/asm-avr32/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

#define WARN_ON(condition) \
({ \
typeof(condition) __ret_warn_on = (condition); \
int __ret_warn_on = !!(condition); \
if (unlikely(__ret_warn_on)) \
_BUG_OR_WARN(BUGFLAG_WARNING); \
unlikely(__ret_warn_on); \
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-parisc/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@


#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
2 changes: 1 addition & 1 deletion trunk/include/asm-s390/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#define BUG() __EMIT_BUG(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) \
__EMIT_BUG(BUGFLAG_WARNING); \
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-sh/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ do { \
} 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
9 changes: 9 additions & 0 deletions trunk/kernel/irq/resend.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq)
*/
desc->chip->enable(irq);

/*
* Temporary hack to figure out more about the problem, which
* is causing the ancient network cards to die.
*/
if (desc->handle_irq != handle_edge_irq) {
WARN_ON_ONCE(1);
return;
}

if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY;

Expand Down

0 comments on commit 7117837

Please sign in to comment.