[PATCH] checkpatch: Warn on BUG and BUG_ON uses

2015-06-07 Thread Joe Perches
Spake Linus: > Hell no. > > Stop with the random BUG_ON() additions. > > I have said this before, and apparently I need to sat this again, and > probably I will have to say it in the future. > > We don't add BUG_ON's for random reasons. > > The *ONLY* acceptable reason for a BUG_ON() is if

[PATCH] checkpatch: Warn on BUG and BUG_ON uses

2015-06-07 Thread Joe Perches
Spake Linus: Hell no. Stop with the random BUG_ON() additions. I have said this before, and apparently I need to sat this again, and probably I will have to say it in the future. We don't add BUG_ON's for random reasons. The *ONLY* acceptable reason for a BUG_ON() is if the machine