diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-11 12:00:51 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-15 09:44:35 +0100 |
commit | 723679339d087d79e36c0af67f4be84d866fee20 (patch) | |
tree | 24ac5bb0dba4d8d6fa092b7c5560f74f275f0a08 /kernel | |
parent | kconfig: clean up EOF handling in the lexer (diff) | |
download | linux-723679339d087d79e36c0af67f4be84d866fee20.tar.xz linux-723679339d087d79e36c0af67f4be84d866fee20.zip |
kconfig: warn no new line at end of file
It would be nice to warn if a new line is missing at end of file.
We could do this by checkpatch.pl for arbitrary files, but new line
is rather essential as a statement terminator in Kconfig.
The warning message looks like this:
kernel/Kconfig.preempt:60:warning: no new line at end of file
Currently, kernel/Kconfig.preempt is the only file with no new line
at end of file. Fix it.
I know there are some false negative cases. For example, no warning
is displayed when the last line contains some whitespaces/comments,
but no new line. Yet, this commit works well for most cases.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/Kconfig.preempt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index cd1655122ec0..0fee5fe6c899 100644 --- a/kernel/Kconfig.preempt +++ b/kernel/Kconfig.preempt @@ -57,4 +57,4 @@ config PREEMPT endchoice config PREEMPT_COUNT - bool
\ No newline at end of file + bool |