summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2024-02-05 11:39:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-23 09:25:28 +0100
commitcec85aa54b12d4b2992b04b1183a634c3a310e9c (patch)
tree3e542aa0b25e25df04c38e33ad079c6cbe80f39e /Documentation
parentccce12ecf2a7844060d22c346de18704316256a0 (diff)
downloadlinux-riscv-cec85aa54b12d4b2992b04b1183a634c3a310e9c.tar.gz
linux-riscv-cec85aa54b12d4b2992b04b1183a634c3a310e9c.tar.bz2
linux-riscv-cec85aa54b12d4b2992b04b1183a634c3a310e9c.zip
Documentation/arch/ia64/features.rst: fix kernel-feat directive
My mainline commit c48a7c44a1d0 ("docs: kernel_feat.py: fix potential command injection") contains a bug which can manifests like this when building the documentation: Sphinx parallel build error: UnboundLocalError: local variable 'fname' referenced before assignment make[2]: *** [Documentation/Makefile:102: htmldocs] Error 2 However, this only appears when there exists a '.. kernel-feat::' directive that points to a non-existent file, which isn't the case in mainline. When this commit was backported to stable 6.6, it didn't change Documentation/arch/ia64/features.rst since ia64 was removed in 6.7 in commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture"). This lead to the build failure seen above -- but only in stable kernels. This patch fixes the backport and should only be applied to kernels where Documentation/arch/ia64/features.rst exists and commit c48a7c44a1d0 has also been applied. A second patch will follow to fix kernel_feat.py in mainline so that it doesn't error out when the '.. kernel-feat::' directive points to a nonexistent file. Link: https://lore.kernel.org/all/ZbkfGst991YHqJHK@fedora64.linuxtx.org/ Fixes: e961f8c6966a ("docs: kernel_feat.py: fix potential command injection") # stable 6.6.15 Reported-by: Justin Forbes <jforbes@fedoraproject.org> Reported-by: Salvatore Bonaccorso <carnil@debian.org> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/arch/ia64/features.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/arch/ia64/features.rst b/Documentation/arch/ia64/features.rst
index d7226fdcf5f8..056838d2ab55 100644
--- a/Documentation/arch/ia64/features.rst
+++ b/Documentation/arch/ia64/features.rst
@@ -1,3 +1,3 @@
.. SPDX-License-Identifier: GPL-2.0
-.. kernel-feat:: $srctree/Documentation/features ia64
+.. kernel-feat:: features ia64