]> 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)
commit824b749c35e1d52f5d9afacaaf88670166709a08
tree591b36c9f3e929646b3624664186dad9fa39b40a
parenta9fc78c3d71db53c319c005265ad889a55c62765
checkpatch: fix use via symlink, make missing spelling file non-fatal

Commit 229773ca8ff2 ("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