Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1196370rwb; Tue, 27 Sep 2022 09:37:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bMat/ogKSKEO3EdHhkPGc4to6A3Y0SLUd+Rgp5kmNSfi09+BEZ3IK0UWBJZ/mPS3pdmRj X-Received: by 2002:a17:907:6e09:b0:782:f3c0:611c with SMTP id sd9-20020a1709076e0900b00782f3c0611cmr14816318ejc.626.1664296620027; Tue, 27 Sep 2022 09:37:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664296620; cv=none; d=google.com; s=arc-20160816; b=mm/CGSmHkHNOWeTHmHN/Yj8hNdfei6fr9BgLJDqUumhG32s1CFzjXolxkZRb8Js4DW Oqll/LRkX+7GMV+/LRJiG2oTtIkAGiiillRcW4zrN1p7K6R/rDQDXIWqHFbjJiTe2lHW HtaoSYNMvcN+3wQiVQhY2+r9xkNXfLNdLvtejJUGcfLt8YxZyGdDK2iAheRAH+b6BUcl H/rBvZOPxSsP0ncOtWfFUmDbAKpOvlAYNK5MpbXZOOftmhVsB9P6wgPcJRJ9DEulKm7y Xv26PXZ70K86jDejscagXQCHV3LnhoKChCfWJaeICKO4xOLLPLrNnoCdlSjQdBImbHb4 +fdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Fwtxq3iIjYwQxaI52YLezdXTv1SluuHrldzBLIG1uo0=; b=L15QjllQkuCzbbwfChoC9vCc2lVkN5Mp/Wa8UXtkp9DXuQ6dEPAIkzwqgUWZ024yWr sf+mz/tTP3nOWsF6CP3B6RFlqqickhTaHqg3SSGTAHwUBLZzsCXL0q/WJfN5bqi5hTea 532yi+sACww3gxnG8Rr/RPqmzIXVFhZzK44OPBJkMry1k8aVzvm40nJIHFN0VxqULwkl U3goW5Ufs2ugGtGP/gXd6MlW7nB1aBSGZjqM8E3jxk3XYVll5H/tQqqPITIzGvb+pag0 FGe4W0tD3ledhhC+5YbAFJ/DZqp5dg8NmQJDJRnGk2ZXd1rW/4jnD7yw1HRzt77w1hOr m9kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=LKVkY7nu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm6-20020a0564020c8600b0044e9afe62ecsi2050773edb.392.2022.09.27.09.36.34; Tue, 27 Sep 2022 09:37:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=LKVkY7nu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbiI0QIH (ORCPT + 99 others); Tue, 27 Sep 2022 12:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbiI0QHc (ORCPT ); Tue, 27 Sep 2022 12:07:32 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0BAB14F1; Tue, 27 Sep 2022 09:06:16 -0700 (PDT) Received: from meer.lwn.net (unknown [IPv6:2601:281:8300:73::5f6]) by ms.lwn.net (Postfix) with ESMTPA id 366BC7F8; Tue, 27 Sep 2022 16:06:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 366BC7F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1664294776; bh=Fwtxq3iIjYwQxaI52YLezdXTv1SluuHrldzBLIG1uo0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LKVkY7nu+tM4Evl53NUeinYcIixA+N9Y4ehwB3Gke60aYLEnCwnegEzP3Ud0CQB6r 06mNGBy7cwNFjj2MzXw8vNhBxVS2tksO0AmetzIrwpTpsSRNitewpclFNOwwpwGDq4 XTqogzFXIlZBw4Rfw0F3Z+h+vGXBQ1Ni3+cEO3PSd6jWq5nI8dOMMxge97DqUTXpf/ JI2H92amiMEXpx/MpcmZa3+6o33t7UzMBdWG/Z1G/nKAeY991P+LyB6DhdLDlp0GgE yPRDmL++xkhbj3GY257wtiZg09xsk/XaTN5+JqJOTbBYo2KZqKLH9L/B5aK6fKjDV6 cZrsCzxy23Wpw== From: Jonathan Corbet To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Thorsten Leemhuis , Kees Cook , Jani Nikula , Joe Perches , David Vernet , Jonathan Corbet , Jiri Slaby , Jani Nikula Subject: [PATCH v3 5/7] docs: move asm-annotations.rst into core-api Date: Tue, 27 Sep 2022 10:05:57 -0600 Message-Id: <20220927160559.97154-6-corbet@lwn.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220927160559.97154-1-corbet@lwn.net> References: <20220927160559.97154-1-corbet@lwn.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This one file should not really be in the top-level documentation directory. core-api/ may not be a perfect fit but seems to be best, so move it there. Adjust a couple of internal document references to make them location-independent, and point checkpatch.pl at the new location. Cc: Jiri Slaby Cc: Joe Perches Reviewed-by: David Vernet Acked-by: Jani Nikula Signed-off-by: Jonathan Corbet --- Documentation/{ => core-api}/asm-annotations.rst | 7 ++++--- Documentation/core-api/index.rst | 1 + Documentation/index.rst | 8 -------- scripts/checkpatch.pl | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) rename Documentation/{ => core-api}/asm-annotations.rst (97%) diff --git a/Documentation/asm-annotations.rst b/Documentation/core-api/asm-annotations.rst similarity index 97% rename from Documentation/asm-annotations.rst rename to Documentation/core-api/asm-annotations.rst index a64f2ca469d4..bc514ed59887 100644 --- a/Documentation/asm-annotations.rst +++ b/Documentation/core-api/asm-annotations.rst @@ -43,10 +43,11 @@ annotated objects like this, tools can be run on them to generate more useful information. In particular, on properly annotated objects, ``objtool`` can be run to check and fix the object if needed. Currently, ``objtool`` can report missing frame pointer setup/destruction in functions. It can also -automatically generate annotations for :doc:`ORC unwinder ` +automatically generate annotations for the ORC unwinder +(Documentation/x86/orc-unwinder.rst) for most code. Both of these are especially important to support reliable -stack traces which are in turn necessary for :doc:`Kernel live patching -`. +stack traces which are in turn necessary for kernel live patching +(Documentation/livepatch/livepatch.rst). Caveat and Discussion --------------------- diff --git a/Documentation/core-api/index.rst b/Documentation/core-api/index.rst index dc95df462eea..f5d8e3779fe8 100644 --- a/Documentation/core-api/index.rst +++ b/Documentation/core-api/index.rst @@ -23,6 +23,7 @@ it. printk-formats printk-index symbol-namespaces + asm-annotations Data structures and low-level utilities ======================================= diff --git a/Documentation/index.rst b/Documentation/index.rst index da80c584133c..5a700548ae82 100644 --- a/Documentation/index.rst +++ b/Documentation/index.rst @@ -89,14 +89,6 @@ platform firmwares. devicetree/index -Architecture-agnostic documentation ------------------------------------ - -.. toctree:: - :maxdepth: 1 - - asm-annotations - Architecture-specific documentation ----------------------------------- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 79e759aac543..812af52f97d2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3751,7 +3751,7 @@ sub process { if ($realfile =~ /\.S$/ && $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) { WARN("AVOID_L_PREFIX", - "Avoid using '.L' prefixed local symbol names for denoting a range of code via 'SYM_*_START/END' annotations; see Documentation/asm-annotations.rst\n" . $herecurr); + "Avoid using '.L' prefixed local symbol names for denoting a range of code via 'SYM_*_START/END' annotations; see Documentation/core-api/asm-annotations.rst\n" . $herecurr); } # check we are in a valid source file C or perl if not then ignore this hunk -- 2.37.2