From f178941d1269f16dd0fa2cea890e5f09470b44e6 Mon Sep 17 00:00:00 2001 From: Guo-Rong Koh Date: Fri, 24 Jul 2026 15:14:16 +0930 Subject: [PATCH] docs(reference): add upstream kernel patch tools to acceptance criteria Migrate the patch verification tools section from the deprecated Ubuntu Wiki page Kernel/Dev/KernelGitGuide into the patch acceptance criteria reference. The added section lists the upstream kernel tools used to check patches before submission: - Documentation/process/submitting-patches.rst - scripts/checkpatch.pl - scripts/cleanpatch - scripts/cleanfile - scripts/Lindent The remaining content of KernelGitGuide is obsoleted by existing content. Signed-off-by: Guo-Rong Koh --- docs/reference/patch-acceptance-criteria.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/reference/patch-acceptance-criteria.rst b/docs/reference/patch-acceptance-criteria.rst index 58f5cb9..80d3564 100644 --- a/docs/reference/patch-acceptance-criteria.rst +++ b/docs/reference/patch-acceptance-criteria.rst @@ -48,6 +48,24 @@ Patch does not apply The patch should always be based on a recent kernel. Expect to resubmit again if the tip changes and the patch has conflicts. +Patch fails upstream checks +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Patches are expected to pass the upstream kernel patch tools provided with the +kernel source tree. A patch that fails these checks will be rejected. + +Before you submit, do the following: + +- Read ``Documentation/process/submitting-patches.rst`` for the upstream + patch submission guidelines. +- Run ``scripts/checkpatch.pl`` against a generated patch to catch style + and formatting problems. +- Run ``scripts/cleanpatch`` if the patch needs to be cleaned before + submission. +- Run ``scripts/cleanfile`` on a new file before you create the patch. +- Run ``scripts/Lindent`` if a file needs to follow the kernel indentation + style. + SRU patches -----------