diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-01-06 22:41:01 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 23:59:13 (GMT) |
commit | af9379c7121d5543722c00bbd1adf7dcaa0b6448 (patch) | |
tree | 798ddf46cd7b3edbec70d8b1af5f064d1db83532 /kernel/wait.c | |
parent | 5f820f648c92a5ecc771a96b3c29aa6e90013bba (diff) | |
download | linux-fsl-qoriq-af9379c7121d5543722c00bbd1adf7dcaa0b6448.tar.xz |
documentation: when to BUG(), and when to not BUG()
Provide some basic advice about when to use BUG()/BUG_ON(): never, unless
there's really no better option.
This matches my understanding of the standard policy ... which seems not
to be written down so far, outside of LKML messages that I haven't
bookmarked.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/wait.c')
0 files changed, 0 insertions, 0 deletions