login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
18
Re: [PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Olof Johansson <olof@...>
Cc: <linux-kernel@...>, <paulus@...>, <lethal@...>, <kyle@...>, <grundler@...>
Subject:
Re: [PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
Date: Thursday, October 18, 2007 - 6:17 pm
On Thu, 11 Oct 2007 12:12:11 -0500 Olof Johansson <olof@lixom.net> wrote:
quoted text
> HAVE_ARCH_WARN is used to determine if an arch already has a __WARN() > macro, or if a generic one is needed. > > With this, some of the arch-specific WARN_ON() implementations can be > made common instead (see follow-up patch for powerpc). >
Those HAVE_ARCH_foo things are unpleasant.
quoted text
> > diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h > index d56fedb..c6b8386 100644 > --- a/include/asm-generic/bug.h > +++ b/include/asm-generic/bug.h > @@ -31,14 +31,19 @@ struct bug_entry { > #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0) > #endif > > +#ifndef HAVE_ARCH_WARN > +#define __WARN() do { \ > + printk("WARNING: at %s:%d %s()\n", __FILE__, \ > + __LINE__, __FUNCTION__); \ > + dump_stack(); \ > +} while (0) > +#endif
Can't we just do #ifndef __WARN? -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
, Olof Johansson
, (Thu Oct 11, 1:12 pm)
[PATCH v2] [1/2] bug.h: Remove HAVE_ARCH_BUG.* / HAVE_ARCH_W...
, Olof Johansson
, (Thu Oct 18, 10:03 pm)
Re: [PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
, Andrew Morton
, (Thu Oct 18, 6:17 pm)
Re: [PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
, Olof Johansson
, (Thu Oct 18, 6:34 pm)
Re: [PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
, Paul Mundt
, (Thu Oct 11, 10:53 pm)
Re: [PATCH 1/2] bug.h: Introduce HAVE_ARCH_WARN
, Kyle McMartin
, (Thu Oct 11, 1:20 pm)
[PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Olof Johansson
, (Thu Oct 11, 1:14 pm)
[PATCH v2] [2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Olof Johansson
, (Thu Oct 18, 10:03 pm)
Re: [PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Paul Mackerras
, (Thu Oct 11, 9:23 pm)
Re: [PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Olof Johansson
, (Thu Oct 11, 10:40 pm)
Re: [PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Kyle McMartin
, (Thu Oct 11, 10:04 pm)
Re: [PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Olof Johansson
, (Thu Oct 11, 10:41 pm)
Re: [PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
, Scott Wood
, (Thu Oct 11, 3:55 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Woodhouse
[PATCH 1/3] firmware: allow firmware files to be built into kernel image
Linus Torvalds
Linux 2.6.21
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Rick Jones
Re: Network latency regressions from 2.6.22 to 2.6.29
Gerrit Renker
[PATCH 18/37] dccp: Support for Mandatory options
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
744 guests
online.
Online users
spinalaidhudson
Adikajtaz
Syndicate