[PATCH] checkpatch: Warn on const char foo[] = "bar"; declarations

2018-11-04 Thread Joe Perches
These declarations should generally be static const to avoid poor compilation and runtime performance where compilers tend to initialize the const declaration for every call instead of using .rodata for the string. Miscellanea: o Convert spaces to tabs for indentation in 2 adjacent checks

[PATCH] checkpatch: Warn on const char foo[] = "bar"; declarations

2018-11-04 Thread Joe Perches
These declarations should generally be static const to avoid poor compilation and runtime performance where compilers tend to initialize the const declaration for every call instead of using .rodata for the string. Miscellanea: o Convert spaces to tabs for indentation in 2 adjacent checks