From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0934FC04A68 for ; Thu, 28 Jul 2022 13:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xJEHq/cYyE2iB/f8tPj/pOWk1f2vT/GbmE3olimg1fE=; b=ub/qGQy5+Oh3IW TYdeDD6DtuoNdhLpeSVHHtq+2WrnHw7HQbND3EsEP1aDgIGfMigYGj9WK+wJpK1s1w6KUdCr71f8Q yOXYGkbJe4upq81h4R8ynO1J+yQa526r1exYLKP03RyXyMEp7acJkAKMJhU1oPnvf2SEtrLj+4GHQ Q3Hg/4AnV07pKyTxmaPDg3AfwBv0Wzn1s2En6QZezAsDkhlMUJBFUr0RR0YJI1OaKcna+Kj6KA+Pt ICU5cuo3vMK51nHic590dXhve8UeL43f7VyjglJwFM8Ne2CI9OARg36+joa42gtLjOEqprkK5xY7T H5rD1noML0JoG3fUJy5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oH3DE-009Ugz-7O; Thu, 28 Jul 2022 13:06:00 +0000 Received: from ms.lwn.net ([45.79.88.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oH3Ct-009UPo-DA for linux-arm-kernel@lists.infradead.org; Thu, 28 Jul 2022 13:05:40 +0000 Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 5A0BF6E2; Thu, 28 Jul 2022 13:05:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 5A0BF6E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1659013533; bh=Rn0/Mu+SAV+BNOe5JrY+OgsjZ+DlbTUQOY3Wh6DCw/k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=m96c49tz3s79D6TTEd1k8GPvfm82e0IJVCx5NOOZMZU6J7Own9cLUVHxdRak8M9DO CH32YY5xjA+LWRctPVF5Esm+z6iKfpguO+jq+9iyx+EKhqjAvbZdhNR0Fn0XYk0QW9 17sgW+HmEzs2kIPs6KwpvMrlhxpuM79G0nERz+2sLTXGTf+BaRslO+68jzF/h6/FwX MQkMWGK1DS1SAzg3k7y3W/PQUSTRenCH3dwHnC+wL4k3vs8Px6sBYKLxnyP8o4yrAm AMexj741a1aD2Pc589uhExlMa0J+GeZaeiS1d8k+dF0oRFtL8oTNLG+g9DebTkQOSu 2UelDwQnk6vhA== From: Jonathan Corbet To: Bagas Sanjaya , linux-doc@vger.kernel.org, linux-next@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alex Shi , Yanteng Si , Nicholas Piggin , Segher Boessenkool , Bagas Sanjaya , Stephen Rothwell Subject: Re: [PATCH 2/3] Documentation: use different label names for each arch's elf_hwcaps.rst In-Reply-To: <20220728033332.27836-3-bagasdotme@gmail.com> References: <20220727220050.549db613@canb.auug.org.au> <20220728033332.27836-3-bagasdotme@gmail.com> Date: Thu, 28 Jul 2022 07:05:32 -0600 Message-ID: <87y1wdcrqb.fsf@meer.lwn.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220728_060539_477858_B00FC85A X-CRM114-Status: GOOD ( 14.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Bagas Sanjaya writes: > Sphinx reported duplicate label warning: > > WARNING: duplicate label elf_hwcaps_index, other instance in Documentation/arm64/elf_hwcaps.rst > > The warning is caused by elf_hwcaps_index label name is already used for > arm64 documentation, whileas powerpc use the same name. > > Disambiguate the label name for each architecture's documentation. While > at it, also adjust original reference in translated documentation. > > Link: https://lore.kernel.org/linuxppc-dev/20220727220050.549db613@canb.auug.org.au/ > Fixes: 3df1ff42e69e91 ("powerpc: add documentation for HWCAPs") > Reported-by: Stephen Rothwell > Signed-off-by: Bagas Sanjaya > --- > Documentation/arm64/elf_hwcaps.rst | 2 +- > Documentation/powerpc/elf_hwcaps.rst | 2 +- > Documentation/translations/zh_CN/arm64/elf_hwcaps.rst | 2 +- > Documentation/translations/zh_TW/arm64/elf_hwcaps.rst | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) A better solution in cases like this is to just delete the label entirely. I'm not quite sure how we got started with this habit of adding unneeded labels, but they just clutter up the text - and, as we've seen, add warnings. These labels aren't needed for anything, so I'd just take them out. Thanks, jon _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel