Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6672419iob; Wed, 11 May 2022 02:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy21cyssHovoZTTEophzvyY995ZaO0BCHl1FUcGqjg0JQTiH/DiEPNgRAlUxw7amzxPzOHJ X-Received: by 2002:a17:902:b18e:b0:15e:c6ac:440a with SMTP id s14-20020a170902b18e00b0015ec6ac440amr25014314plr.152.1652262618271; Wed, 11 May 2022 02:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262618; cv=none; d=google.com; s=arc-20160816; b=sRhSBcDn4Y4Y9C4XqdKzyvdJwSuLtNNTYVzNYAD9JphuCIV3hp/3Skl8l6acklXKvD cEPBK1gQjIDoSlKxx0Dpt5lFDxgo3eETw8dWkJvW9GbFmG2hCew+gMAvJSgBDuCrOKq+ 2wOoQhS7TPN481zgM+c6xNnASgRNfP7/wXL0hh6CKW7h99v+Dtt99icxMbTR5/G7w/Oh MraT5yD0D550CjZejpjqAVgtU9dw2QBlhI60wWuAVx10q221+DmTNv3bazh90eRDU8xT ZVmOIRMgScXf+o9G5iQZzxNapEvVJ/VjQh88zMoWGNVDQyDAru08WwixdmI2bdQl/IXe rd2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from:dkim-signature; bh=GUwmb8WUz+d8rIT5s68PdvGp8OiPvyQgMToZHWTShs8=; b=uTDTzwSJ/TJv4lEWI75sKJpVdYXg2Pqvav3qINttwsSRdiWDnjlt/X3Sw+XfciuSOh cw+wgyEPda8XRd5i6Gh2vE/UGKttYXxyvnYl23Xrt5+S32go6h/Wtn8wyGZV1Ddd5Lf9 RT9F9mNWe1Ik9ylw/4lKa7hIAZKJBzmspc4SZiICKZy4siTvyLTmntfYUh3k9dHXPasU 9WjW2SSmq5emvkHxZF0AexPhTcC9PHRGDu/ENkP/y9YDqhh9I9EgwoB8MdFRJAH7I7Le siil+uqd9Mjbiv9508tbO47RiXpE1G4cwfAMmqQIqUOeLFiMbvn6OnIygknemaMD2EXM xqKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmp.felk.cvut.cz header.s=felkmail header.b=anjgfRPv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmp.felk.cvut.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a170902bb8200b0015d17ba5b65si1773551pls.22.2022.05.11.02.50.04; Wed, 11 May 2022 02:50:18 -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=@cmp.felk.cvut.cz header.s=felkmail header.b=anjgfRPv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmp.felk.cvut.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347504AbiEJQio (ORCPT + 99 others); Tue, 10 May 2022 12:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244941AbiEJQim (ORCPT ); Tue, 10 May 2022 12:38:42 -0400 X-Greylist: delayed 557 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 10 May 2022 09:34:43 PDT Received: from mailgw.felk.cvut.cz (mailgw.felk.cvut.cz [147.32.82.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 891E02A3752; Tue, 10 May 2022 09:34:43 -0700 (PDT) Received: from mailgw.felk.cvut.cz (localhost.localdomain [127.0.0.1]) by mailgw.felk.cvut.cz (Proxmox) with ESMTP id 4F8D8303260B; Tue, 10 May 2022 18:25:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= cmp.felk.cvut.cz; h=cc:cc:content-transfer-encoding:content-type :content-type:date:from:from:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=felkmail; bh=GUwmb 8WUz+d8rIT5s68PdvGp8OiPvyQgMToZHWTShs8=; b=anjgfRPvazXbKAMxUXKa7 fY6juY58etYD/ZiNtJmBdIBIdGc4KaooWeuPCcPz51tSx6dqctHVf106A4I7RPMb 1TEgzTFo4U/YVOyaWGs39x4NKRCTRkfoMTSOob95cXLgg+ZbOjzvnS0am3VPvL6T c1bqktoZkeemT60Xy0O8S57CRqB4GFw8LJxevnYiLXmj6qnAQpwq+aMn4CZOiqQz 8yHC/4abCXhKR2UqR6AX8wewcPtF6LYTERJLnWiVZpqUuC4VP5MyMMNBmwPokEcO SUnGfniSF6vixheoxKvEoyvX/y0yfVi5y+mNdp/NDeZWEBQxDJYejAZ7/IxUs79Z g== Received: from cmp.felk.cvut.cz (haar.felk.cvut.cz [147.32.84.19]) by mailgw.felk.cvut.cz (Proxmox) with ESMTPS id 77C823032609; Tue, 10 May 2022 18:25:23 +0200 (CEST) Received: from haar.felk.cvut.cz (localhost [127.0.0.1]) by cmp.felk.cvut.cz (8.14.0/8.12.3/SuSE Linux 0.6) with ESMTP id 24AGPNgM025943; Tue, 10 May 2022 18:25:23 +0200 Received: (from pisa@localhost) by haar.felk.cvut.cz (8.14.0/8.13.7/Submit) id 24AGPM8X025942; Tue, 10 May 2022 18:25:22 +0200 X-Authentication-Warning: haar.felk.cvut.cz: pisa set sender to pisa@cmp.felk.cvut.cz using -f From: Pavel Pisa To: Akira Yokosawa Subject: Re: [PATCH net-next] docs: ctucanfd: Use 'kernel-figure' directive instead of 'figure' Date: Tue, 10 May 2022 18:25:15 +0200 User-Agent: KMail/1.9.10 Cc: "Marc Kleine-Budde" , Martin Jerabek , Ondrej Ille , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <05d491d4-c498-9bab-7085-9c892b636d68@gmail.com> In-Reply-To: <05d491d4-c498-9bab-7085-9c892b636d68@gmail.com> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <202205101825.15126.pisa@cmp.felk.cvut.cz> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,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 Hello Akira, On Tuesday 10 of May 2022 11:34:37 Akira Yokosawa wrote: > Two issues were observed in the ReST doc added by commit c3a0addefbde > ("docs: ctucanfd: CTU CAN FD open-source IP core documentation."). Thanks for the fix > The plain "figure" directive broke "make pdfdocs" due to a missing=20 > PDF figure. For conversion of SVG -> PDF to work, the "kernel-figure" > directive, which is an extension for kernel documentations, should > be used instead. I have not noticed that there is kernel-figure option. We have setup own Sphinx 1.4.9 based build for driver documentation out of the tree compilation, I am not sure if that would work with this option but if not we keep this version modified. There are required modification for sources location anyway... https://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/doc/linux_driver/build/ct= ucanfd-driver.html > The directive of "code:: raw" causes a warning from both > "make htmldocs" and "make pdfdocs", which reads: > > [...]/can/ctu/ctucanfd-driver.rst:75: WARNING: Pygments lexer name > 'raw' is not known Strange I have not seen any warning when building htmldocs in my actual linux kernel tree. I have cleaned docs to be warnings free, but it is possible that I have another tools versions. Anyway thanks for cleanup. > A plain literal-block marker should suffice where no syntax > highlighting is intended. > > Fix the issues by using suitable directive and marker. > > Signed-off-by: Akira Yokosawa > Fixes: c3a0addefbde ("docs: ctucanfd: CTU CAN FD open-source IP core > documentation.") Cc: Pavel Pisa > Cc: Martin Jerabek > Cc: Ondrej Ille > Cc: Marc Kleine-Budde Acked-by: Pavel Pisa > --- > .../networking/device_drivers/can/ctu/ctucanfd-driver.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git > a/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst > b/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst ind= ex > 2fde5551e756..40c92ea272af 100644 > --- a/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst > +++ b/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst > @@ -72,7 +72,7 @@ it is reachable (on which bus it resides) and its > configuration =E2=80=93 registers address, interrupts and so on. An examp= le of such > a device tree is given in . > > -.. code:: raw > +:: > > / { > /* ... */ > @@ -451,7 +451,7 @@ the FIFO is maintained, together with priority > rotation, is depicted in > > > > -.. figure:: fsm_txt_buffer_user.svg > +.. kernel-figure:: fsm_txt_buffer_user.svg > > TX Buffer states with possible transitions