Message ID | 20231104134708.69432-1-hunter.chasens18@ncf.edu |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1658510vqu; Sat, 4 Nov 2023 06:48:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGcRwJ5fGvxVHsLxhUIgciihgEo48aXgsz2t/4S4zUQJECcs4a8cTf5EZ/+Me2emavGsGU X-Received: by 2002:a05:6e02:1bc5:b0:358:104:679d with SMTP id x5-20020a056e021bc500b003580104679dmr33597197ilv.28.1699105688718; Sat, 04 Nov 2023 06:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699105688; cv=none; d=google.com; s=arc-20160816; b=DJKeC4eVQFkZFIcpdrwh0RRjpsgQazRDQCoDIkCIZUIltblBA35uSTzxrbA3pcwkJH il5KHV1CqH2Rbq9rg8dSmAncTMopJeY0TMg3RHc1Q5FUsV4i+scOOjmDNr+rWyDXs7Hd I9otUWPmaC64vZu+areezvAFab2qZFgSCTGrv8vV8lNLAfcGdO73A+cZNjvNhe43UNpX 3QSTdnZGqMhuKEWXGhCtR98B8G4PDApna9Bo0riXMbDlsiOOS0sAoJ/GJWKJcXJvNdjz jkbuH1WELoZz7RgAe7pnk4sMhtq/gZxGpe1H6W9fRMWlQtUOyXHP8WgsXtmRAMnEHueY rSsQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QRyo4uayRcD1OGB0/F9hU4wPpRqY3YBFvShQiftusTQ=; fh=t51AwbUXuvrXUKCQCHzEERMtJzzHwC81aNuIiEH6cKg=; b=u+0zg+TGeeFe5WM/5IkBSVUKcvGOHwQr3SvHtGQH6KE1bnr7bJJ/ec53cd0M+TIzoW npR/kf9dWS6S5owbPciV6Kr9+Mjt1+kFcaXQCi5jdBJ02bHcl7Z2kg3ApCRV6wMdaMzh 1OESTv32tCcv5+0kEXt292V9qldCdzLlGvDPEdO0BbCI7PO48/Z+fFNUVqmmxlYVRUf2 oRHbcH2ERMxKNdDwMurShXoCdQUv9+NJqt3kN8Y/7j8PB0t+hb414yxU4HQmBaQUKG91 gzQkNFg0rQ+bEN2X5vUJNrg9jblf9G3h8NRR5HS8a3oJlK55HXNKrKGdvartkN01Ee+R NEHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ncf.edu header.s=google header.b=aDJFS3Pf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ncf.edu Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b005b95fa863c6si3710821pgv.661.2023.11.04.06.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 06:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ncf.edu header.s=google header.b=aDJFS3Pf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ncf.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 324C6803E4B8; Sat, 4 Nov 2023 06:47:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232265AbjKDNrd (ORCPT <rfc822;lhua1029@gmail.com> + 35 others); Sat, 4 Nov 2023 09:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231483AbjKDNrc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 4 Nov 2023 09:47:32 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B02E9125 for <linux-kernel@vger.kernel.org>; Sat, 4 Nov 2023 06:47:29 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5a86b6391e9so35720217b3.0 for <linux-kernel@vger.kernel.org>; Sat, 04 Nov 2023 06:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncf.edu; s=google; t=1699105649; x=1699710449; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QRyo4uayRcD1OGB0/F9hU4wPpRqY3YBFvShQiftusTQ=; b=aDJFS3Pf3oowHLw6elukZyMOfBpXkaIhEgf3jyWGpUr/auFCGiSPrW2fwMEPzGOLgs rgVUv5PAycNB7EpLsZU0dvmy2kww1t8h0jd/lZZC8L7aOK41TQ69yYG1I3Q1/bXfq2FH wEEZIrSn8iuL7Ob6/u/Hfak1cRJ7RpcodusqZ9c9o7/yEm5B2c56zSyxLayo3LRt8tKI 0HJG6Ckz8UmWky7dpbI1IvdCN6jEdJjNjwLQf4E2ONG9BhOZkRmKE3NlVK+8ORsardHQ Gej8eUfrM+8jvqwSj3hBhDkvf4O+Rf6/DA5jcAuwfEiY7myRMNqdJIK1ipI8ftLS/gw6 PSeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699105649; x=1699710449; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QRyo4uayRcD1OGB0/F9hU4wPpRqY3YBFvShQiftusTQ=; b=mA4Dt9P3Vsk0szJ1eTvY/Ppsr5JdJ54zzoS0H0bd2WdyQ8KltBp+ClIP6EFQCm8MuD sGffuBpufBbuBvwDll6xcN9LDVXa3yHj4X7aBming3zHwGScaxbgUWscrN9Z+PrCHqas vEpQd0nifqRWd7p3u7AglURrcjzS2/YnSxwzds07I2otqaD9FTduufQ2ZN8qqOlnn072 CFcNCEIsHj1zGXaENe/auH6zsZ9WohMG0B287x4bm/IErMqebmC6abOBwqtPo/+VkkeD 8lkLXQZCG3sTIgjKrYaOxoBarJ3ZRMVxxmiNUgggg5HPQE9agw/SB+M4DCl1IH1+QjXK hxNg== X-Gm-Message-State: AOJu0YzlmFKTJ50jck0BnfuaiclxzWqSQPlhOpaN9+p/tvu2krz4+OnK aTXY50M5J+Srdt8LE9OvAvR4Qg== X-Received: by 2002:a05:690c:ecf:b0:5a7:bc78:81e7 with SMTP id cs15-20020a05690c0ecf00b005a7bc7881e7mr6540808ywb.30.1699105648902; Sat, 04 Nov 2023 06:47:28 -0700 (PDT) Received: from localhost.localdomain ([2601:580:8201:d0::c6a9]) by smtp.gmail.com with ESMTPSA id p188-20020a815bc5000000b00559f1cb8444sm2088339ywb.70.2023.11.04.06.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 06:47:28 -0700 (PDT) From: Hunter Chasens <hunter.chasens18@ncf.edu> To: corbet@lwn.net Cc: airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Hunter Chasens <hunter.chasens18@ncf.edu> Subject: [PATCH v1] docs: gpu: rfc: i915_scheduler.rst remove unused directives for namespacing Date: Sat, 4 Nov 2023 09:47:08 -0400 Message-Id: <20231104134708.69432-1-hunter.chasens18@ncf.edu> X-Mailer: git-send-email 2.39.3 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 04 Nov 2023 06:47:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781641446998877343 X-GMAIL-MSGID: 1781641446998877343 |
Series |
[v1] docs: gpu: rfc: i915_scheduler.rst remove unused directives for namespacing
|
|
Commit Message
Hunter Chasens
Nov. 4, 2023, 1:47 p.m. UTC
Removed unused directives for namespacing I believe to have been
originally introduced as a workaround for a Sphinx warning.
Signed-off-by: Hunter Chasens <hunter.chasens18@ncf.edu>
---
Documentation/gpu/rfc/i915_scheduler.rst | 4 ----
1 file changed, 4 deletions(-)
Comments
On Sat, Nov 04, 2023 at 09:47:08AM -0400, Hunter Chasens wrote: > diff --git a/Documentation/gpu/rfc/i915_scheduler.rst b/Documentation/gpu/rfc/i915_scheduler.rst > index c237ebc024cd..23ba7006929b 100644 > --- a/Documentation/gpu/rfc/i915_scheduler.rst > +++ b/Documentation/gpu/rfc/i915_scheduler.rst > @@ -135,13 +135,9 @@ Add I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT and > drm_i915_context_engines_parallel_submit to the uAPI to implement this > extension. > > -.. c:namespace-push:: rfc > - > .. kernel-doc:: include/uapi/drm/i915_drm.h > :functions: i915_context_engines_parallel_submit > > -.. c:namespace-pop:: > - > Extend execbuf2 IOCTL to support submitting N BBs in a single IOCTL > ------------------------------------------------------------------- > Contexts that have been configured with the 'set_parallel' extension can only The warnings go away, thanks! Fixes: f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
On Mon, 06 Nov 2023, Bagas Sanjaya <bagasdotme@gmail.com> wrote: > On Sat, Nov 04, 2023 at 09:47:08AM -0400, Hunter Chasens wrote: >> diff --git a/Documentation/gpu/rfc/i915_scheduler.rst b/Documentation/gpu/rfc/i915_scheduler.rst >> index c237ebc024cd..23ba7006929b 100644 >> --- a/Documentation/gpu/rfc/i915_scheduler.rst >> +++ b/Documentation/gpu/rfc/i915_scheduler.rst >> @@ -135,13 +135,9 @@ Add I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT and >> drm_i915_context_engines_parallel_submit to the uAPI to implement this >> extension. >> >> -.. c:namespace-push:: rfc >> - >> .. kernel-doc:: include/uapi/drm/i915_drm.h >> :functions: i915_context_engines_parallel_submit >> >> -.. c:namespace-pop:: >> - What makes the namespacing unnecessary? $ git grep '.. kernel-doc:: include/uapi/drm/i915_drm.h' Documentation/gpu/driver-uapi.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h Documentation/gpu/rfc/i915_scheduler.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h And you get [1] and [2]. >> Extend execbuf2 IOCTL to support submitting N BBs in a single IOCTL >> ------------------------------------------------------------------- >> Contexts that have been configured with the 'set_parallel' extension can only > > The warnings go away, thanks! What warnings go away? BR, Jani. [1] https://docs.kernel.org/gpu/driver-uapi.html#c.i915_context_engines_parallel_submit [2] https://docs.kernel.org/gpu/rfc/i915_scheduler.html#c.rfc.i915_context_engines_parallel_submit > > Fixes: f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") > Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
When running `make htmldocs` the following warnings are given. ``` Documentation/gpu/rfc/i915_scheduler.rst:138: WARNING: Unknown directive type "c:namespace-push". .. c:namespace-push:: rfc Documentation/gpu/rfc/i915_scheduler.rst:143: WARNING: Unknown directive type "c:namespace-pop". .. c:namespace-pop:: ``` The kernel test robot also reported it here. Link: https://lore.kernel.org/all/202311061623.86pTQrie-lkp@intel.com/ Last year Maryam Tahhan <mtahhan@redhat.com> from Redhat noticed something similar. "The missing support of c:namespace-push:: and c:namespace-pop:: directives by helper scripts for kernel documentation prevents using the ``c:function::`` directive with proper namespacing." From the context, it sounds like this was brought about from a Sphinx update. Link: https://lore.kernel.org/all/20221123092321.88558-3-mtahhan@redhat.com/ When compiled the `.. kernel-doc::` literal gives it the same formatting with or without the namespace directives present. Due to the above information I think it safe to remove these, as they don't seem to do anything but throw warnings. On Mon, Nov 6, 2023 at 5:31 AM Jani Nikula <jani.nikula@intel.com> wrote: > > On Mon, 06 Nov 2023, Bagas Sanjaya <bagasdotme@gmail.com> wrote: > > On Sat, Nov 04, 2023 at 09:47:08AM -0400, Hunter Chasens wrote: > >> diff --git a/Documentation/gpu/rfc/i915_scheduler.rst b/Documentation/gpu/rfc/i915_scheduler.rst > >> index c237ebc024cd..23ba7006929b 100644 > >> --- a/Documentation/gpu/rfc/i915_scheduler.rst > >> +++ b/Documentation/gpu/rfc/i915_scheduler.rst > >> @@ -135,13 +135,9 @@ Add I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT and > >> drm_i915_context_engines_parallel_submit to the uAPI to implement this > >> extension. > >> > >> -.. c:namespace-push:: rfc > >> - > >> .. kernel-doc:: include/uapi/drm/i915_drm.h > >> :functions: i915_context_engines_parallel_submit > >> > >> -.. c:namespace-pop:: > >> - > > What makes the namespacing unnecessary? > > $ git grep '.. kernel-doc:: include/uapi/drm/i915_drm.h' > Documentation/gpu/driver-uapi.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h > Documentation/gpu/rfc/i915_scheduler.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h > > And you get [1] and [2]. > > >> Extend execbuf2 IOCTL to support submitting N BBs in a single IOCTL > >> ------------------------------------------------------------------- > >> Contexts that have been configured with the 'set_parallel' extension can only > > > > The warnings go away, thanks! > > What warnings go away? > > BR, > Jani. > > > [1] https://docs.kernel.org/gpu/driver-uapi.html#c.i915_context_engines_parallel_submit > [2] https://docs.kernel.org/gpu/rfc/i915_scheduler.html#c.rfc.i915_context_engines_parallel_submit > > > > > Fixes: f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") > > Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com> > > -- > Jani Nikula, Intel
On Mon, 06 Nov 2023, Hunter Chasens <hunter.chasens18@ncf.edu> wrote: > When running `make htmldocs` the following warnings are given. > > ``` > Documentation/gpu/rfc/i915_scheduler.rst:138: WARNING: > Unknown directive type "c:namespace-push". > > .. c:namespace-push:: rfc > Documentation/gpu/rfc/i915_scheduler.rst:143: WARNING: > Unknown directive type "c:namespace-pop". > > .. c:namespace-pop:: > ``` > > The kernel test robot also reported it here. > Link: https://lore.kernel.org/all/202311061623.86pTQrie-lkp@intel.com/ > > Last year Maryam Tahhan <mtahhan@redhat.com> from Redhat noticed something > similar. "The missing support of c:namespace-push:: and c:namespace-pop:: > directives by helper scripts for kernel documentation prevents using the > ``c:function::`` directive with proper namespacing." From the context, it > sounds like this was brought about from a Sphinx update. > > Link: https://lore.kernel.org/all/20221123092321.88558-3-mtahhan@redhat.com/ > > When compiled the `.. kernel-doc::` literal gives it the same formatting with > or without the namespace directives present. Due to the above information I > think it safe to remove these, as they don't seem to do anything but > throw warnings. Not so fast! Looks like this is because namespacing was introduced in Sphinx 3.1 [1]. With earlier Sphinx, you get a warning about the namespace directives. However, with newer Sphinx, you get the warning mentioned in commit f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") if you remove the namespace directives: linux/Documentation/gpu/driver-uapi.rst:2279: WARNING: Duplicate C declaration, also defined at rfc/i915_scheduler:3. Declaration is '.. c:struct:: i915_context_engines_parallel_submit'. It would be short-sighted to just remove the directives. Sooner or later we're gong to bump the (IMO extremely conservative) minimum version requirement. BR, Jani. [1] https://www.sphinx-doc.org/en/master/usage/domains/c.html#namespacing > > On Mon, Nov 6, 2023 at 5:31 AM Jani Nikula <jani.nikula@intel.com> wrote: >> >> On Mon, 06 Nov 2023, Bagas Sanjaya <bagasdotme@gmail.com> wrote: >> > On Sat, Nov 04, 2023 at 09:47:08AM -0400, Hunter Chasens wrote: >> >> diff --git a/Documentation/gpu/rfc/i915_scheduler.rst b/Documentation/gpu/rfc/i915_scheduler.rst >> >> index c237ebc024cd..23ba7006929b 100644 >> >> --- a/Documentation/gpu/rfc/i915_scheduler.rst >> >> +++ b/Documentation/gpu/rfc/i915_scheduler.rst >> >> @@ -135,13 +135,9 @@ Add I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT and >> >> drm_i915_context_engines_parallel_submit to the uAPI to implement this >> >> extension. >> >> >> >> -.. c:namespace-push:: rfc >> >> - >> >> .. kernel-doc:: include/uapi/drm/i915_drm.h >> >> :functions: i915_context_engines_parallel_submit >> >> >> >> -.. c:namespace-pop:: >> >> - >> >> What makes the namespacing unnecessary? >> >> $ git grep '.. kernel-doc:: include/uapi/drm/i915_drm.h' >> Documentation/gpu/driver-uapi.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h >> Documentation/gpu/rfc/i915_scheduler.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h >> >> And you get [1] and [2]. >> >> >> Extend execbuf2 IOCTL to support submitting N BBs in a single IOCTL >> >> ------------------------------------------------------------------- >> >> Contexts that have been configured with the 'set_parallel' extension can only >> > >> > The warnings go away, thanks! >> >> What warnings go away? >> >> BR, >> Jani. >> >> >> [1] https://docs.kernel.org/gpu/driver-uapi.html#c.i915_context_engines_parallel_submit >> [2] https://docs.kernel.org/gpu/rfc/i915_scheduler.html#c.rfc.i915_context_engines_parallel_submit >> >> > >> > Fixes: f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") >> > Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com> >> >> -- >> Jani Nikula, Intel
Jani Nikula <jani.nikula@intel.com> writes: > Looks like this is because namespacing was introduced in Sphinx 3.1 > [1]. With earlier Sphinx, you get a warning about the namespace > directives. > > However, with newer Sphinx, you get the warning mentioned in commit > f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") if you > remove the namespace directives: > > linux/Documentation/gpu/driver-uapi.rst:2279: WARNING: Duplicate C declaration, also defined at rfc/i915_scheduler:3. > Declaration is '.. c:struct:: i915_context_engines_parallel_submit'. > > It would be short-sighted to just remove the directives. Sooner or later > we're gong to bump the (IMO extremely conservative) minimum version > requirement. I'd say let's just do that once the merge window is done. A year ago (in 31abfdda6527) I added a warning for <2.4.x, so raising the minimum that far would appear to require no thought. Going up to 3.1 is a step beyond that, though, not sure if we want to go that far. Something to ask at the LPC session next week. Thanks, jon
On 06/11/2023 17:31, Jani Nikula wrote: > On Mon, 06 Nov 2023, Bagas Sanjaya <bagasdotme@gmail.com> wrote: >> On Sat, Nov 04, 2023 at 09:47:08AM -0400, Hunter Chasens wrote: >>> diff --git a/Documentation/gpu/rfc/i915_scheduler.rst b/Documentation/gpu/rfc/i915_scheduler.rst >>> index c237ebc024cd..23ba7006929b 100644 >>> --- a/Documentation/gpu/rfc/i915_scheduler.rst >>> +++ b/Documentation/gpu/rfc/i915_scheduler.rst >>> @@ -135,13 +135,9 @@ Add I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT and >>> drm_i915_context_engines_parallel_submit to the uAPI to implement this >>> extension. >>> >>> -.. c:namespace-push:: rfc >>> - >>> .. kernel-doc:: include/uapi/drm/i915_drm.h >>> :functions: i915_context_engines_parallel_submit >>> >>> -.. c:namespace-pop:: >>> - > > What makes the namespacing unnecessary? > > $ git grep '.. kernel-doc:: include/uapi/drm/i915_drm.h' > Documentation/gpu/driver-uapi.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h > Documentation/gpu/rfc/i915_scheduler.rst:.. kernel-doc:: include/uapi/drm/i915_drm.h > > And you get [1] and [2]. > >>> Extend execbuf2 IOCTL to support submitting N BBs in a single IOCTL >>> ------------------------------------------------------------------- >>> Contexts that have been configured with the 'set_parallel' extension can only >> >> The warnings go away, thanks! > > What warnings go away? > Oops, I mean the patch author had silenced these warnings.
On 07/11/2023 02:41, Jani Nikula wrote: > On Mon, 06 Nov 2023, Hunter Chasens <hunter.chasens18@ncf.edu> wrote: >> When running `make htmldocs` the following warnings are given. >> >> ``` >> Documentation/gpu/rfc/i915_scheduler.rst:138: WARNING: >> Unknown directive type "c:namespace-push". >> >> .. c:namespace-push:: rfc >> Documentation/gpu/rfc/i915_scheduler.rst:143: WARNING: >> Unknown directive type "c:namespace-pop". >> >> .. c:namespace-pop:: >> ``` >> >> The kernel test robot also reported it here. >> Link: https://lore.kernel.org/all/202311061623.86pTQrie-lkp@intel.com/ >> >> Last year Maryam Tahhan <mtahhan@redhat.com> from Redhat noticed something >> similar. "The missing support of c:namespace-push:: and c:namespace-pop:: >> directives by helper scripts for kernel documentation prevents using the >> ``c:function::`` directive with proper namespacing." From the context, it >> sounds like this was brought about from a Sphinx update. >> >> Link: https://lore.kernel.org/all/20221123092321.88558-3-mtahhan@redhat.com/ >> >> When compiled the `.. kernel-doc::` literal gives it the same formatting with >> or without the namespace directives present. Due to the above information I >> think it safe to remove these, as they don't seem to do anything but >> throw warnings. > > Not so fast! > > Looks like this is because namespacing was introduced in Sphinx 3.1 > [1]. With earlier Sphinx, you get a warning about the namespace > directives. > > However, with newer Sphinx, you get the warning mentioned in commit > f6757dfcfde7 ("drm/doc: fix duplicate declaration warning") if you > remove the namespace directives: > > linux/Documentation/gpu/driver-uapi.rst:2279: WARNING: Duplicate C declaration, also defined at rfc/i915_scheduler:3. > Declaration is '.. c:struct:: i915_context_engines_parallel_submit'. > > It would be short-sighted to just remove the directives. Sooner or later > we're gong to bump the (IMO extremely conservative) minimum version > requirement. > OK, thanks for explanation!
diff --git a/Documentation/gpu/rfc/i915_scheduler.rst b/Documentation/gpu/rfc/i915_scheduler.rst index c237ebc024cd..23ba7006929b 100644 --- a/Documentation/gpu/rfc/i915_scheduler.rst +++ b/Documentation/gpu/rfc/i915_scheduler.rst @@ -135,13 +135,9 @@ Add I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT and drm_i915_context_engines_parallel_submit to the uAPI to implement this extension. -.. c:namespace-push:: rfc - .. kernel-doc:: include/uapi/drm/i915_drm.h :functions: i915_context_engines_parallel_submit -.. c:namespace-pop:: - Extend execbuf2 IOCTL to support submitting N BBs in a single IOCTL ------------------------------------------------------------------- Contexts that have been configured with the 'set_parallel' extension can only