]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix use via symlink, make missing spelling file non-fatal
authorJoe Perches <joe@perches.com>
Wed, 10 Dec 2014 23:51:43 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:11 +0000 (17:41 -0800)
commit3cb8430fd82283e14dea8bc713c3ecbb31a669a5
tree591b36c9f3e929646b3624664186dad9fa39b40a
parent6eb754b7232fd8979fed3f07ecadf4e4a48f02e9
checkpatch: fix use via symlink, make missing spelling file non-fatal

Commit e2e9a985a4d0 ("checkpatch: look for common misspellings") made it
difficult to use checkpatch via a symlink.

Fix that and make a missing spelling.txt file non-fatal.  Emit a warning
when the spelling.txt file can not be opened.

Reference: http://xkcd.com/1172/

Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl