Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1306083rwd; Thu, 1 Jun 2023 13:33:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WbYKD/DsqvneoOP6K02tRMtb8+MT8GXB8PRC8Maqvd0Sb4WCnabiD1cY7ll/e8iHnCNF0 X-Received: by 2002:a17:90a:6c82:b0:258:89d3:d950 with SMTP id y2-20020a17090a6c8200b0025889d3d950mr301005pjj.46.1685651623448; Thu, 01 Jun 2023 13:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685651623; cv=none; d=google.com; s=arc-20160816; b=XOlcDoTXLsAjeqSYD6s5nmCi+uDz6a6Sa6McanqScL9fc85o6BnBQrNYDJoY9SQrrc dYzOwFmSp20FBbLXi+w031Dc4uNipgjXA6vru3P3FjMoRAsyjQWRseEiRHfwTuXzGm6+ cspd+kI7rNA4ZPEeLDF4bxde4JbtmXWrMl4W5ea4yIu/LCzlvNAFWjeI02/QpLgJisPv j8ozIGHwVMrkLZWglx22X6yI4pJv4NkKiue/CIU2Yh9om0NuSMDhoQc70CChHAceULLo hdpZvdz3ydDO56Xuv9exwFOYsMhxvTjq7JhKcZlFwyDzL0bN7wjgNbLJlLWmUIO6vse8 jxQQ== 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=KHOfwolgp9XhN7STp1l0dexkTZzW2Pcs/mHiDWhkhXI=; b=CoItoECbLCU8+4Xqxlnjztf9LAqA7OEgrUNuQIbn945Z4DYcIJ4MZydV5r11n1cRUv QZ+1oGUw+6wsJozSEwmrqDw9bQlmbSA3cDhenpMzUtgUPwDt3x2VNgjJ/fCS6Qo/7tUq OPWoAl9OOxaWRvjw8aShNV1RNvPGRuLPEp8d0+Xk5GtutJLX8lzFHGqKudFMZmUUoca3 JvMVgJH0R7wJUqZNGMaQ0xGV/P2sP824sNM2yMO4bZNNUZ7BN0d4QULacWoAkq8gwvJK IY+IttupIC74N2OO0eY3AvdI+7N/ny5jhdN/zsMKMXozcD8z7J3c3xxKsEROPcO//GqY RXSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lVug5T1r; 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 h190-20020a636cc7000000b0053059dfafe4si3129212pgc.86.2023.06.01.13.33.30; Thu, 01 Jun 2023 13:33:43 -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=lVug5T1r; 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 S232492AbjFAUYC (ORCPT + 99 others); Thu, 1 Jun 2023 16:24:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232102AbjFAUX5 (ORCPT ); Thu, 1 Jun 2023 16:23:57 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C05419D for ; Thu, 1 Jun 2023 13:23:31 -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=KHOfwolgp9XhN7STp1l0dexkTZzW2Pcs/mHiDWhkhXI=; b=lVug5T1raKnst0iLVKJVuj0iZo tw5+d34F0rJrIDMYTxT8bJqtA5jnw89Y6Ri3siDGv1CFagjvYPl0JYMXv7ASS3FZjLSwcIqF4Lb2L gxfw9+DYM3rVDwrK68a+F3UJTNV4XuhAd9TnIXUSol45TZQ4Bv/DoRKY38XGo9fmLuhg3FMqeZ3XU YYk63+DXJsurDmtWeUm2Enk9OWU2Cg2gq3kXqhgT4raIEQ5gHYXcK8Hk7u87y8fKThYzSSh4GpkF2 ixgdxIU7CcL7BeNLXNMJjWTqmdaiVrjXwTm7npZWOqCqQUzO2MkGMI5w3Eaplpw2GLdVqvQUSR8nU 4ksDo8Xw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q4opU-004rIk-26; Thu, 01 Jun 2023 20:23:28 +0000 Message-ID: Date: Thu, 1 Jun 2023 13:23:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] firewire: fix warnings to generate UAPI documentation Content-Language: en-US To: Takashi Sakamoto , linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: Stephen Rothwell References: <20230601144937.121179-1-o-takashi@sakamocchi.jp> From: Randy Dunlap In-Reply-To: <20230601144937.121179-1-o-takashi@sakamocchi.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi, On 6/1/23 07:49, Takashi Sakamoto wrote: > Any target to generate UAPI documentation reports warnings to missing > annotation for padding member in structures added recently. > > This commit suppresses the warnings. > > Reported-by: Stephen Rothwell > Closes: https://lore.kernel.org/lkml/20230531135306.43613a59@canb.auug.org.au/ > Fixes: 7c22d4a92bb2 ("firewire: cdev: add new event to notify request subaction with time stamp") > Fixes: fc2b52cf2e0e ("firewire: cdev: add new event to notify response subaction with time stamp") > Signed-off-by: Takashi Sakamoto > --- > include/uapi/linux/firewire-cdev.h | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > You can do it as this patch shows, or you can hide those padding fields as described in Documentation/doc-guide/kernel-doc.rst: Inside a struct or union description, you can use the ``private:`` and ``public:`` comment tags. Structure fields that are inside a ``private:`` area are not listed in the generated output documentation. The ``private:`` and ``public:`` tags must begin immediately following a ``/*`` comment marker. They may optionally include comments between the ``:`` and the ending ``*/`` marker. See below. > diff --git a/include/uapi/linux/firewire-cdev.h b/include/uapi/linux/firewire-cdev.h > index 99e823935427..1f2c9469f921 100644 > --- a/include/uapi/linux/firewire-cdev.h > +++ b/include/uapi/linux/firewire-cdev.h > @@ -130,6 +130,9 @@ struct fw_cdev_event_response { > * @length: Data length, i.e. the response's payload size in bytes > * @request_tstamp: The time stamp of isochronous cycle at which the request was sent. > * @response_tstamp: The time stamp of isochronous cycle at which the response was sent. > + * @padding: Padding to keep the size of structure as multiples of 8 in various architectures > + * since 4 byte alignment is used for 8 byte of object type in System V ABI for i386 > + * architecture. You could drop that change. > * @data: Payload data, if any > * > * This event is sent when the stack receives a response to an outgoing request > @@ -155,10 +158,6 @@ struct fw_cdev_event_response2 { > __u32 length; > __u32 request_tstamp; > __u32 response_tstamp; /* private: */ > - /* > - * Padding to keep the size of structure as multiples of 8 in various architectures since > - * 4 byte alignment is used for 8 byte of object type in System V ABI for i386 architecture. > - */ > __u32 padding; /* public: */ > __u32 data[]; > }; > @@ -231,6 +230,9 @@ struct fw_cdev_event_request2 { > * @handle: Reference to the kernel-side pending request > * @length: Data length, i.e. the request's payload size in bytes > * @tstamp: The time stamp of isochronous cycle at which the request arrived. > + * @padding: Padding to keep the size of structure as multiples of 8 in various architectures > + * since 4 byte alignment is used for 8 byte of object type in System V ABI for i386 > + * architecture. drop that. > * @data: Incoming data, if any > * > * This event is sent when the stack receives an incoming request to an address > @@ -284,10 +286,6 @@ struct fw_cdev_event_request3 { > __u32 handle; > __u32 length; > __u32 tstamp; /* private: */ > - /* > - * Padding to keep the size of structure as multiples of 8 in various architectures since > - * 4 byte alignment is used for 8 byte of object type in System V ABI for i386 architecture. > - */ > __u32 padding; /* public: */ > __u32 data[]; > }; -- ~Randy