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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C881CC433F5 for ; Mon, 28 Mar 2022 16:52:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238314AbiC1Qx4 (ORCPT ); Mon, 28 Mar 2022 12:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244439AbiC1QxM (ORCPT ); Mon, 28 Mar 2022 12:53:12 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F8FD52E2A for ; Mon, 28 Mar 2022 09:51:31 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id pv16so30004989ejb.0 for ; Mon, 28 Mar 2022 09:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TjNuhCXe+PjFnTXBHLrLoeoTTYDdDeH8ei+EheLHkDc=; b=MyfZrav6RgVjpKFdewxmvRPK3g8FVlWpFb0ATz57iua3B4pBl1QfVbGAhpJj+wif/X zTaSikLrHqFkPCcjkGeCg2uYN1eI+SzvtyKPbnerWds66SzTQYxlP4tvsakATAdmnvU6 YPHyaWANcejF028m7vh50waXCYMhqqtAbmijQhm7hb+lVtsfKTnyrWWi47jlvP3Ux53D 4yKpm1j5btuQDw53Iqud6mEVTKdXMZm09X1has8IrWks1DrRrOZwLduZ8vygERXf0dUN WWfAl4rn6WWHkw0/shVKhml2sHveGN6mTjNhMW9eZncM3wiza2Mn+LLb5Fz2NZWtOd6Z uJmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TjNuhCXe+PjFnTXBHLrLoeoTTYDdDeH8ei+EheLHkDc=; b=Fs0e/lb7OSdqMhonbfCoZlRXLzF73mhBbb9JwH7sIetuijpplIeIpgmKLCHiyk1424 n08z1oZs4WlDOymnJrIZAe/gngflqD6RMgIXwn9p95B1oPyugz+7arEds3E5vqmdt83e LtAHNmEUK1lmr9ap3sBad2/U3vDsoIyKUqdtIJLY7dQNivBQjocvhrF3zsSEDm25w9MG KNr5a+cmB2Dg+ZTWOfmIiesTRWXWb+yD5tQdCgV52AtwPHqYwC+uqxtufynzBrMzgw7p FG1cRtqsLAHbwSX1d6pbAphC9P+og0tQlOmyg4UfGcYu5axUFT06rogsuWtTYea3wXiW pOXQ== X-Gm-Message-State: AOAM530N3GMjzIZbUKhygSXXtGDLcpSKGBPhwLuXRAF2QhFspL29gmbp u4pm+2330IsFhA2yEKhjGNDiaEK+VU4GhHVR5n2JDw== X-Google-Smtp-Source: ABdhPJwQUeLnvUWh/kg8H2Rq1WHHdSozspFbhwqXozAWN0gl0KPOFdMJ3F7LoGB2Ee9TPuaDSOTzNmMBumWtUgfgTfU= X-Received: by 2002:a17:907:c018:b0:6df:e31b:d912 with SMTP id ss24-20020a170907c01800b006dfe31bd912mr28886127ejc.196.1648486286570; Mon, 28 Mar 2022 09:51:26 -0700 (PDT) MIME-Version: 1.0 References: <20220326054414.637293-1-davidgow@google.com> In-Reply-To: <20220326054414.637293-1-davidgow@google.com> From: Brendan Higgins Date: Mon, 28 Mar 2022 12:51:15 -0400 Message-ID: Subject: Re: [PATCH] Documentation: kunit: Fix cross-referencing warnings To: David Gow Cc: Jonathan Corbet , Marco Elver , Daniel Latypov , skhan@linuxfoundation.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 26, 2022 at 1:45 AM David Gow wrote: > > The Architecture chapter of the KUnit documentation tried to include > copies of the kernel-doc for a couple of things, despite these already > existing in the API documentation. This lead to some warnings: > > architecture:31: ./include/kunit/test.h:3: WARNING: Duplicate C declaration, also defined at dev-tools/kunit/api/test:66. > Declaration is '.. c:struct:: kunit_case'. > architecture:163: ./include/kunit/test.h:1217: WARNING: Duplicate C declaration, also defined at dev-tools/kunit/api/test:1217. > Declaration is '.. c:macro:: KUNIT_ARRAY_PARAM'. > architecture.rst:3: WARNING: Duplicate C declaration, also defined at dev-tools/kunit/api/test:66. > Declaration is '.. c:struct:: kunit_case'. > architecture.rst:1217: WARNING: Duplicate C declaration, also defined at dev-tools/kunit/api/test:1217. > Declaration is '.. c:macro:: KUNIT_ARRAY_PARAM'. > > Get rid of these, and cleanup the mentions of the struct and macro in > question so that sphinx generates a link to the existing copy of the > documentation in the api/test document. > > Fixes: bc145b370c ("Documentation: KUnit: Added KUnit Architecture") > Signed-off-by: David Gow Reviewed-by: Brendan Higgins Tested-by: Brendan Higgins