Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37818927rwd; Tue, 11 Jul 2023 21:33:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9wM1cB+5pNni7OJjeKHLwG3ACafKaLSSO2CD8F0l/Rg0u08pjUAI+mW/MWRK60v6YsoEa X-Received: by 2002:a17:903:230b:b0:1b8:b41e:66b4 with SMTP id d11-20020a170903230b00b001b8b41e66b4mr21347437plh.67.1689136426216; Tue, 11 Jul 2023 21:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689136426; cv=none; d=google.com; s=arc-20160816; b=Ou5BV/y4jQKuPPJWdRuXXVaIXX3XGDvFsyhUFsBNhmwlBnZn3z/gdcTMBNmfEMzqnG A9D0/zb4gNbCXzJBdn4RLL8Qj1x5s9VOtV4RWVeT6AyKQajBaBCA9RZgQfJngeusfa/z UdpknMH5FZqAt8teHJBuGI4wTHkkTUqZaHTFwnznXPrkETDocBSw8nDRqcmPfJEaINxu wbnEUW1M/GurCVwNzPPANTE6XPm4p+EykI2HcoD1H0fqCIvxnH4Hj59NNglPuI2/VC7f Sw8Z+/mcwC3i5zTm/DA7JlSk1sQiLFG8qWd7iZzG3NTvDbtyVnUApAZYRjRevmgb9abK y0Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vhbVcfMKPrLrsHtGRck5zDkPlc+WWbTuWV1q+FmP9WE=; fh=6T3vaorDhKtmCa/UXCBcOA0XwiL472Kyua0n0F0Do9E=; b=JQFHlXrXk2noG80BvZ6TCKlDomvPK0L2PczLJhiROW45AV3uQCgizlv3rIVCSo9fDs 4R8KSiOyVeJ5/NSXjm5irosloWZ33YfSK7wF4P3yQBk3BdkBDtVZqdbPeDMgZcXwfaI4 WzHgKRmqanKQE0ZHkvaE5XGg8PfdkDka8nKtRwaCmurLYIUZeroY1fuUJENjKFtIaGIR 54SM0ho1w27+SodAnN2Z3sjsO24wwSeU4/CjyYe2PLgQEEInK0U960Pf+m2WIIKalwOy bRCdIiV5mJkx/YDNFie9SqyFqW6XlDzXTwdAlk6vp2iKwy6kVBj0Mfg8dLLVJ1H2T5Ri nJQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FSxLoc66; 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 z14-20020a1709027e8e00b001b9d181b4cesi2653762pla.199.2023.07.11.21.33.31; Tue, 11 Jul 2023 21:33:46 -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=@infradead.org header.s=bombadil.20210309 header.b=FSxLoc66; 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 S229983AbjGLDpW (ORCPT + 99 others); Tue, 11 Jul 2023 23:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjGLDpV (ORCPT ); Tue, 11 Jul 2023 23:45:21 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09EAA10D2; Tue, 11 Jul 2023 20:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=vhbVcfMKPrLrsHtGRck5zDkPlc+WWbTuWV1q+FmP9WE=; b=FSxLoc66Nj5DiR7dt34uSHbc7k LX2WRfxF0zgX/LLGETmLjNk9tVRSu3aNGUdhoAisWJHyCJnkgbxsxNL1X9KCwFmwLmfTjT0Bg7Yjs OSgzQZEGldVCQN8S7OkzFQMnMwgZUvhSse8wM+qPiM1xjJdb5vPYhSPB6nwcai4lvBNR+m75Ofuby 0riHG4Pez2LrBscCC1RuAICmB/mqAYyIm8lAwY5f7CBLgbwx6pVEW4tJCfZfK39M5lmD+sdssTRFp QRg5TvZsLyEr1iIhtYKoDwE9kOjMYYGuLu+bCz3qjDmQqhh71vIB/RYXBiW8ygKrGtQ04xKspgdVw TmiekADw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qJQn1-00GQ2y-0N; Wed, 12 Jul 2023 03:45:19 +0000 Message-ID: <58cafdc0-0209-cfdd-c8e0-2dd25d73a184@infradead.org> Date: Tue, 11 Jul 2023 20:45:18 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: scripts/kernel-doc does not handle duplicate struct & function names (e.g., in amdgpu) Content-Language: en-US To: Akira Yokosawa Cc: amd-gfx@lists.freedesktop.org, corbet@lwn.net, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab References: <0475d177-4c01-0988-0b34-3099dd703498@gmail.com> From: Randy Dunlap In-Reply-To: <0475d177-4c01-0988-0b34-3099dd703498@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SORTED_RECIPS,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 7/11/23 20:32, Akira Yokosawa wrote: > Hi Randy, > >> [just documenting this for posterity or in case someone wants to fix it.] >> >> In drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c, one can find both >> >> struct amdgpu_vm_tlb_seq_cb {...}; >> >> and >> static void amdgpu_vm_tlb_seq_cb(...) >> >> Of course C has no problem with this, but kernel-doc reports: >> >> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:833: WARNING: Duplicate C declaration, also defined at gpu/amdgpu/driver-core:115. >> >> And of course, if the name of one of them is changed, kernel-doc is all happy... >> not that I am suggesting that one of them should be changed. >> >> I just want to make people aware of this. (or maybe people are already aware of this?) > > The duplicate warning is emitted from Sphinx, not kernel-doc. > > This is a bug of Sphinx >=3.1, first reported by Mauro back in September 2020 at: > > https://github.com/sphinx-doc/sphinx/issues/8241 > > It was closed when a local fix was presented. Unfortunately, it was not > merged at the time and a subsequent pull request was opened at: > > https://github.com/sphinx-doc/sphinx/pull/8313 > > It is not merged yet and carries a milestone of Sphinx 7.x. > > Looks like we need to wait patiently. > > Thanks, Akira Ooooh, thanks for your assistance. Waiting.... :) -- ~Randy