summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-01-03 15:26:59 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-01-04 13:13:46 -0800
commit77b8c0a8e47484e205b01dfedcd224770aa9d800 (patch)
tree6c330016a11944d5dd5f9f0dd5b5e7651e1b35ae /fs
parent05391772a72d49c37e6e4cb8e871be57beb66155 (diff)
downloadlinux-77b8c0a8e47484e205b01dfedcd224770aa9d800.tar.bz2
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')
0 files changed, 0 insertions, 0 deletions