linux kernel coding style and checkpatch.pl script

Konstantin Andreev andreev at swemel.ru
Thu Mar 26 07:36:23 EDT 2020


Valdis Klētnieks, 26 Mar 2020 07:13 MSK:
> 
> To borrow from Pirates of the Carribean, "They're not exactly rules, they're more like... suggestions..."
> 
> Don't split literal strings, it means that grepping the source tree for "already registered" fails. Making grep for a string work is more important than shutting up checkpatch.

Sic! Grepping is important. Given that, why are kernel functions coded in a

| static int __init loglevel(char *str)
| {

way, but not old decent

| static int __init
| loglevel(char *str)
| {

unix way?

--
Regards, Konstantin



More information about the Kernelnewbies mailing list