Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp326380pxu; Tue, 6 Oct 2020 07:22:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw53+UnU+EHMyzk+4h7KB6+sK/jx86PaCUQG5BkKyYr2GNfNYxEwuGad4EIaGN+xKy8W+ZQ X-Received: by 2002:a17:906:dc5:: with SMTP id p5mr5780005eji.116.1601994157405; Tue, 06 Oct 2020 07:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601994157; cv=none; d=google.com; s=arc-20160816; b=UWu0qKpTdtdQzq5aY/Zt990khgoUxltrtTBhAfb0JzR7x7CLrMZeGWOGg2g8HpcvI1 sr9n4dZ7GE4RXtfZi63TQJXXDqg8JxgoJljIwswifB8Ad3sRj3NoeIQhPPFk3S9jLzPY 6vkB/XdVWpVtrAczo3K+79hmPyL/9SnYTnuDWM+pFJ5c4n7z+d8lsfTEUgjLwzKRuW97 7loXRPgP49CiTgW5X687XUg3OhvSYq3v4q9fP9lFrsaoyi6GUwMFe8gSwVqOTrdEep4t 1fN5peb+hIuavDoTvDlStE/n5UAlJfh2jaJlvsR6FLVFO3GAxSX0KJFseg3QdMeRmEbf o07g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=s7S8W1ccmKd/vEBMeJZqBbFkeHdzJs16y4A3Kfnsj2s=; b=z0DbW0mKnzXwN0pi9GA7mBM+jMm1l7wO0wRh5DCDdE7KH6RI18v95/U75tu7ytfFOS mTRiFlHWPnfoAN2hinYBsvESA5ZFIB+N/hVSvtMJOUVA2mzjI0fX6ysNv6MA81NRDy1G C0pqg6zkfU7vf8vQgOouRI0qYLV8b0wlXFvv+cAo2NDDVj0O9ZTGe4LLpJLeft3vJhWZ C+zSuIO5XkEI1hGx4JQnxbPMjl7uZ3no1zsG6m/y2raBoLv1auTtGcSLC9+nNul7ggDB 99Lz4ZCsUJjrCKLPH5UGSd5Nkw3oZkiQrluIgngeReQ/kxi5m9g0ZfAR/DGLseTUkPOP 5KeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si2579590ede.431.2020.10.06.07.22.12; Tue, 06 Oct 2020 07:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726267AbgJFOVB (ORCPT + 99 others); Tue, 6 Oct 2020 10:21:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgJFOVA (ORCPT ); Tue, 6 Oct 2020 10:21:00 -0400 X-Greylist: delayed 440 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 06 Oct 2020 07:21:00 PDT Received: from proxima.lasnet.de (proxima.lasnet.de [IPv6:2a01:4f8:121:31eb:3::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51D4FC061755; Tue, 6 Oct 2020 07:21:00 -0700 (PDT) Received: from localhost.localdomain (p200300e9d72c3c4353f06c511a49ff67.dip0.t-ipconnect.de [IPv6:2003:e9:d72c:3c43:53f0:6c51:1a49:ff67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@datenfreihafen.org) by proxima.lasnet.de (Postfix) with ESMTPSA id C1285C3D16; Tue, 6 Oct 2020 16:13:37 +0200 (CEST) Subject: Re: [PATCH v5 25/52] docs: net: ieee802154.rst: fix C expressions To: Mauro Carvalho Chehab , Linux Doc Mailing List , Jonathan Corbet Cc: "David S. Miller" , Alexander Aring , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org, netdev@vger.kernel.org References: <6ba1d137516e4a144a4fd398934d62b94d31446d.1601992016.git.mchehab+huawei@kernel.org> From: Stefan Schmidt Message-ID: Date: Tue, 6 Oct 2020 16:13:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <6ba1d137516e4a144a4fd398934d62b94d31446d.1601992016.git.mchehab+huawei@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.10.20 16:03, Mauro Carvalho Chehab wrote: > There are some warnings produced with Sphinx 3.x: > > Documentation/networking/ieee802154.rst:29: WARNING: Error in declarator or parameters > Invalid C declaration: Expecting "(" in parameters. [error at 7] > int sd = socket(PF_IEEE802154, SOCK_DGRAM, 0); > -------^ > Documentation/networking/ieee802154.rst:134: WARNING: Invalid C declaration: Expected end of definition. [error at 81] > void ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi): > ---------------------------------------------------------------------------------^ > Documentation/networking/ieee802154.rst:139: WARNING: Invalid C declaration: Expected end of definition. [error at 95] > void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb, bool ifs_handling): > -----------------------------------------------------------------------------------------------^ > Documentation/networking/ieee802154.rst:158: WARNING: Invalid C declaration: Expected end of definition. [error at 35] > int start(struct ieee802154_hw *hw): > -----------------------------------^ > Documentation/networking/ieee802154.rst:162: WARNING: Invalid C declaration: Expected end of definition. [error at 35] > void stop(struct ieee802154_hw *hw): > -----------------------------------^ > Documentation/networking/ieee802154.rst:166: WARNING: Invalid C declaration: Expected end of definition. [error at 61] > int xmit_async(struct ieee802154_hw *hw, struct sk_buff *skb): > -------------------------------------------------------------^ > Documentation/networking/ieee802154.rst:171: WARNING: Invalid C declaration: Expected end of definition. [error at 43] > int ed(struct ieee802154_hw *hw, u8 *level): > -------------------------------------------^ > Documentation/networking/ieee802154.rst:176: WARNING: Invalid C declaration: Expected end of definition. [error at 62] > int set_channel(struct ieee802154_hw *hw, u8 page, u8 channel): > --------------------------------------------------------------^ > > Caused by some bad c:function: prototypes. Fix them. > > Acked-by: David S. Miller > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/networking/ieee802154.rst | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) > > diff --git a/Documentation/networking/ieee802154.rst b/Documentation/networking/ieee802154.rst > index 6f4bf8447a21..f27856d77c8b 100644 > --- a/Documentation/networking/ieee802154.rst > +++ b/Documentation/networking/ieee802154.rst > @@ -26,7 +26,9 @@ The stack is composed of three main parts: > Socket API > ========== > > -.. c:function:: int sd = socket(PF_IEEE802154, SOCK_DGRAM, 0); > +:: > + > + int sd = socket(PF_IEEE802154, SOCK_DGRAM, 0); > > The address family, socket addresses etc. are defined in the > include/net/af_ieee802154.h header or in the special header > @@ -131,12 +133,12 @@ Register PHY in the system. > > Freeing registered PHY. > > -.. c:function:: void ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi): > +.. c:function:: void ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) > > Telling 802.15.4 module there is a new received frame in the skb with > the RF Link Quality Indicator (LQI) from the hardware device. > > -.. c:function:: void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb, bool ifs_handling): > +.. c:function:: void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb, bool ifs_handling) > > Telling 802.15.4 module the frame in the skb is or going to be > transmitted through the hardware device > @@ -155,25 +157,25 @@ operations structure at least:: > ... > }; > > -.. c:function:: int start(struct ieee802154_hw *hw): > +.. c:function:: int start(struct ieee802154_hw *hw) > > Handler that 802.15.4 module calls for the hardware device initialization. > > -.. c:function:: void stop(struct ieee802154_hw *hw): > +.. c:function:: void stop(struct ieee802154_hw *hw) > > Handler that 802.15.4 module calls for the hardware device cleanup. > > -.. c:function:: int xmit_async(struct ieee802154_hw *hw, struct sk_buff *skb): > +.. c:function:: int xmit_async(struct ieee802154_hw *hw, struct sk_buff *skb) > > Handler that 802.15.4 module calls for each frame in the skb going to be > transmitted through the hardware device. > > -.. c:function:: int ed(struct ieee802154_hw *hw, u8 *level): > +.. c:function:: int ed(struct ieee802154_hw *hw, u8 *level) > > Handler that 802.15.4 module calls for Energy Detection from the hardware > device. > > -.. c:function:: int set_channel(struct ieee802154_hw *hw, u8 page, u8 channel): > +.. c:function:: int set_channel(struct ieee802154_hw *hw, u8 page, u8 channel) > > Set radio for listening on specific channel of the hardware device. > >