panic: Allow warnings to set different taint flags
authorBen Hutchings <ben@decadent.org.uk>
Sat, 3 Apr 2010 18:34:56 +0000 (19:34 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 19 May 2010 07:36:48 +0000 (08:36 +0100)
commitb2be05273a1744d175bf4b67f6665637bb9ac7a8
treec0b6333fbc7a1834bfc0eec86dd204b1daacf1b4
parent8954da1f82a468deeeae3683252b5440e7f4ccbe
panic: Allow warnings to set different taint flags

WARN() is used in some places to report firmware or hardware bugs that
are then worked-around.  These bugs do not affect the stability of the
kernel and should not set the flag for TAINT_WARN.  To allow for this,
add WARN_TAINT() and WARN_TAINT_ONCE() macros that take a taint number
as argument.

Architectures that implement warnings using trap instructions instead
of calls to warn_slowpath_*() now implement __WARN_TAINT(taint)
instead of __WARN().

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Helge Deller <deller@gmx.de>
Tested-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Documentation/oops-tracing.txt
arch/parisc/include/asm/bug.h
arch/powerpc/include/asm/bug.h
arch/s390/include/asm/bug.h
arch/sh/include/asm/bug.h
include/asm-generic/bug.h
kernel/panic.c
lib/bug.c