summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorSagar Patel <sagarmp@cs.unc.edu>2022-03-24 02:06:05 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-24 05:00:34 +0300
commitc882c6b1cb3105d378768aa168d2283f50b6e304 (patch)
treea60bf5ef141222948373990370b10f122dd12ce0 /init
parent05dc40e694e0ff527011d0b09542f08da60e28cc (diff)
downloadlinux-c882c6b1cb3105d378768aa168d2283f50b6e304.tar.xz
checkpatch: use python3 to find codespell dictionary
Commit 0ee3e7b8893e ("checkpatch: get default codespell dictionary path from package location") introduced the ability to search for the codespell dictionary rather than hardcoding its path. codespell requires Python 3.6 or above, but on some systems, the python executable is a Python 2.7 interpreter. In this case, searching for the dictionary fails, subsequently making codespell fail: No codespell typos will be found - file '/usr/share/codespell/dictionary.txt': No such file or directory So, use python3 to remove ambiguity. In addition, when searching for dictionary.txt, do not check if the codespell executable exists since, - checkpatch.pl only uses dictionary.txt, not the codespell executable. - codespell can be installed via a Python package manager, in which case the codespell executable may not be present in a typical $PATH, but a dictionary does exist. Link: https://lkml.kernel.org/r/20220309180048.147672-1-sagarmp@cs.unc.edu Signed-off-by: Sagar Patel <sagarmp@cs.unc.edu> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions