All of lore.kernel.org
 help / color / mirror / Atom feed
* a52b1752c07 broke !SMP: error: implicit declaration of function `WARN_ON'
@ 2007-07-17 23:24 Uwe Kleine-König
  2007-07-17 23:54 ` Al Viro
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2007-07-17 23:24 UTC (permalink / raw)
  To: Avi Kivity, linux-kernel

Hello,

kernel/timer.c (and some others as arch/arm/kernel/irq.c) include
<linux/smp.h>, but not <linux/kernel.h>

a52b1752c07 introduces usage of the WARN_ON macro in <linux/smp.h>, but
doesn't pull in <linux/kernel.h>.  (<asm/bug.h> is not enough, at least
for arm, because WARN_ON uses printk there.)

The obvious options are:

1) include <linux/kernel.h> in <linux/smp.h>, maybe conditioned by !SMP
2) include <linux/kernel.h> in all includers of <linux/smp.h>
3) remove the WARN_ONs introduced by a52b1752c07.

WARN_ON is used in an inline function that isn't used in every file
including <linux/smp.h>, so maybe updating the compiler might make
the effort for 2) smaller!?  (I'm using gcc 3.4.4)

Best regards
Uwe

-- 
Uwe Kleine-König

$ dc -e "5735816763073014741799356604682P"

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-18  4:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 23:24 a52b1752c07 broke !SMP: error: implicit declaration of function `WARN_ON' Uwe Kleine-König
2007-07-17 23:54 ` Al Viro
2007-07-18  4:16   ` [PATCH] UP: smp_call_function_single() must warn on irqs_disabled() Satyam Sharma
2007-07-18  4:49     ` Satyam Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.