Skip to content

coding-style.rst: document BUG() and WARN() rules

David Hildenbrand linux-doc linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v13 patches 16 repliesSuperseded

Changes in v2 from the cover letter

* "coding-style.rst: document BUG() and WARN() rules ("do not crash the kernel")"
-> Minor rephrasing / reference fix [John]
-> Compile fix [Akira]
* "powerpc/prom_init: drop PROM_BUG()"
-> Dropped because it will go upstream via a different tree
* "checkpatch: warn on usage of VM_BUG_ON() and other BUG variants" -> Rephrase warning message and remove trailing period [John+Joe]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2coding-style.rst: document BUG() and WARN() rules ("do not crash the kernel")Documentation/process/coding-style.rst+62 -00 replies
2/2checkpatch: warn on usage of VM_BUG_ON() and other BUG variantsscripts/checkpatch.pl+3 -30 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJohn Hubbard
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] coding-style.rst: document BUG() and WARN() rules

As it seems to be rather unclear if/when to use BUG(), BUG_ON(), VM_BUG_ON(), WARN_ON_ONCE(), ... let's try to document the result of a recent discussion.

Details can be found in patch #1.

v1 -> v2:
* "coding-style.rst: document BUG() and WARN() rules ("do not crash the kernel")"
-> Minor rephrasing / reference fix [John]
-> Compile fix [Akira]
* "powerpc/prom_init: drop PROM_BUG()"
-> Dropped because it will go upstream via a different tree
* "checkpatch: warn on usage of VM_BUG_ON() and other BUG variants" -> Rephrase warning message and remove trailing period [John+Joe]

RFC -> v1:
* "coding-style.rst: document BUG() and WARN() rules ("do not crash the kernel")"
-> Rephrase/extend according to John
-> Add some details regarding the use of panic()
* powerpc/prom_init: drop PROM_BUG()
-> Added
* "checkpatch: warn on usage of VM_BUG_ON() and other BUG variants" -> Warn on more variants

Cc Linus Torvalds <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc David Laight <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Andy Whitcroft <[email protected]>
Cc Joe Perches <[email protected]>
Cc Dwaipayan Ray <[email protected]>
Cc Lukas Bulwahn <[email protected]>
Cc Baoquan He <[email protected]>
Cc Vivek Goyal <[email protected]>
Cc Dave Young <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Akira Yokosawa <[email protected]>
Cc Kalle Valo <[email protected]>
Cc Daniel K. <[email protected]>

David Hildenbrand (2):
coding-style.rst: document BUG() and WARN() rules ("do not crash the
kernel")
checkpatch: warn on usage of VM_BUG_ON() and other BUG variants

 Documentation/process/coding-style.rst | 62 ++++++++++++++++++++++++++
 scripts/checkpatch.pl                  |  6 +--
 2 files changed, 65 insertions(+), 3 deletions(-)
Signature · 1 line
2.37.3