diff options
author | Joe Perches <joe@perches.com> | 2019-01-04 02:26:59 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-05 00:13:46 +0300 |
commit | 77b8c0a8e47484e205b01dfedcd224770aa9d800 (patch) | |
tree | 6c330016a11944d5dd5f9f0dd5b5e7651e1b35ae /fs/eventpoll.c | |
parent | 05391772a72d49c37e6e4cb8e871be57beb66155 (diff) | |
download | linux-77b8c0a8e47484e205b01dfedcd224770aa9d800.tar.xz |
checkpatch: warn on const char foo[] = "bar"; declarations
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:
- Convert spaces to tabs for indentation in 2 adjacent checks
Link: http://lkml.kernel.org/r/10ea5f4b087dc911e41e187a4a2b5e79c7529aa3.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/eventpoll.c')
0 files changed, 0 insertions, 0 deletions