Re: [PATCH v2 1/2] scripts: allow checkpatch and get_maintainer in sparse checkouts

From: Joe Perches

Date: Sun Apr 05 2026 - 15:26:53 EST


On Mon, 2026-04-06 at 03:15 +0800, CaoRuichuang wrote:
> checkpatch.pl and get_maintainer.pl currently reject sparse checkouts because top_of_kernel_tree() insists on top-level directories such as arch/, drivers/ and fs/ being present in the working tree.

I still think this is unnecessary and you should just add --no-tree
to the command line / script invocations of these tools.