Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2039448rdh; Tue, 26 Sep 2023 10:24:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk4C+t8BNqG5sbs4tfGYWKyxdk1hAc1DxkgpFwimpBh1QUK6g5ZY+8VFXin0DhPk4ao3Hb X-Received: by 2002:a05:6870:9214:b0:1c0:937:455d with SMTP id e20-20020a056870921400b001c00937455dmr13568837oaf.47.1695749086140; Tue, 26 Sep 2023 10:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695749086; cv=none; d=google.com; s=arc-20160816; b=rqBfvSIVp5n4xrlML7F5qplSd7YX0TBB4mywSgnMrmNPI8oX8dSvYSA5yzxCv/hvM9 HsSPVtZzDLBDn+lmto36voCCzNW469x95i22rnFKsG6CGyVObiGh/4KOZh89I7e1VIlJ 54GvxIxbooNxRJVCOlNZL7Wh7xwk7uXy8CX0J9cQgqY1u24EVdytrAWU5dhQ+8sqAyhd PTvKGntZOwkm3RP2r7Bdq65yS4X7RuXL+OC8Cw8pbZDzYct83RTJDriDasCgX+T7W8bz wn/+rFqAVxsP6x/lBZeCC3vpk+iTWmBBYHfQdx7ZgiLrCdFGE9X9thhKgJhPbnhA0dt+ oRUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=I4W1X58W93tMVbYjs4i+SgCBLJQsSJ8HZ30S12pdlS8=; fh=GJtTMMEy/hUcotXM8j/tBXoEUFVukVjnIqu+lipvcCI=; b=R6EHxUTQJlIggc4wI3xVJaLxOOJ/sYaUoRlLQRVxwdPh4vsH2cfvMliOMPSh0whsF6 cPLB4D5T2YAGrvzySrV3mVN5FrLWiL6DzyrTYLmU13Nks+FxMHTUZe/tOMZHavuL4aSx OeAr0iBoc76MX7uFXVvo6i3nHvKDxptekEJQqwiOUpoM8J0qMN+4l+nAnAPWNxT+5v9W MwBoTPRDm1V7OR5IzkmBONuTg11uAZi/12RR2GrEY6As23MxLV0fFAT6pqeaHB74xy6U BncU1qcqnmbf5gl73I7ymPwtgwPVjeIsHFoFqhxk0iziD3XHj+vvGN4B5TaY5r2NaWjx hMKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cn1x8242; 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=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d15-20020a63360f000000b0056c2f508886si12874719pga.423.2023.09.26.10.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:24:46 -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=@intel.com header.s=Intel header.b=Cn1x8242; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E053181A7AD8; Tue, 26 Sep 2023 09:19:11 -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 S235211AbjIZQTI (ORCPT + 99 others); Tue, 26 Sep 2023 12:19:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbjIZQTH (ORCPT ); Tue, 26 Sep 2023 12:19:07 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A84EB; Tue, 26 Sep 2023 09:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695745140; x=1727281140; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=ATDp29asW+amdSOP7sAM78HFxFX7RJ83JjLVpk3qsZQ=; b=Cn1x8242qmUWQoyOkWveP/7ZRsvk3NivNPe6yC2rwrazDa1ZDlhbj2GE Enl/dXEjSxhjHaikYQTDHgTUaF/bAGRPaSDibn50F2xL91Bu+MN4V3faI Vl9q7J3HEE7t2s06sZSy6xqhNcykQGqX8YF983q/JkGRMFOYGHJBFLqcB LeIqc8EqkH/lCup6co82JUEzRR+yFtg103aGN1tDiN6B6taiCjXbO9sbf InvY9vFuKI8SoDSWFC2KmPxiA1Q0QY6cQdm0Vzihwh9FOGBZy0xx//cjK iEa4YNW27drKSnYgRt3pvZJ09EXdmA8gEopnlMTPHxZ+ucF59dcLYlIcx A==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="378884817" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="378884817" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:18:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="995854941" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="995854941" Received: from hhalmen-mobl.ger.corp.intel.com ([10.251.219.207]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:18:56 -0700 Date: Tue, 26 Sep 2023 19:18:53 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Randy Dunlap cc: LKML , kernel test robot , Liming Sun , Hans de Goede , Mark Gross , Vadim Pasternak , platform-driver-x86@vger.kernel.org Subject: Re: [PATCH] platform/mellanox: tmfifo: fix kernel-doc warnings In-Reply-To: <20230926054013.11450-1-rdunlap@infradead.org> Message-ID: <7b57bf9d-b024-b435-54ca-6ab5916197a1@linux.intel.com> References: <20230926054013.11450-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2105164461-1695745138=:1894" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:19:12 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2105164461-1695745138=:1894 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 25 Sep 2023, Randy Dunlap wrote: > Fix kernel-doc notation for structs and struct members to prevent > these warnings: > > mlxbf-tmfifo.c:73: warning: cannot understand function prototype: 'struct mlxbf_tmfifo_vring ' > mlxbf-tmfifo.c:128: warning: cannot understand function prototype: 'struct mlxbf_tmfifo_vdev ' > mlxbf-tmfifo.c:146: warning: cannot understand function prototype: 'struct mlxbf_tmfifo_irq_info ' > mlxbf-tmfifo.c:158: warning: cannot understand function prototype: 'struct mlxbf_tmfifo_io ' > mlxbf-tmfifo.c:182: warning: cannot understand function prototype: 'struct mlxbf_tmfifo ' > mlxbf-tmfifo.c:208: warning: cannot understand function prototype: 'struct mlxbf_tmfifo_msg_hdr ' > mlxbf-tmfifo.c:138: warning: Function parameter or member 'config' not described in 'mlxbf_tmfifo_vdev' > mlxbf-tmfifo.c:212: warning: Function parameter or member 'unused' not described in 'mlxbf_tmfifo_msg_hdr' > > Fixes: 1357dfd7261f ("platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc") > Fixes: bc05ea63b394 ("platform/mellanox: Add BlueField-3 support in the tmfifo driver") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Closes: lore.kernel.org/r/202309252330.saRU491h-lkp@intel.com > Cc: Liming Sun > Cc: Hans de Goede > Cc: Ilpo Järvinen > Cc: Mark Gross > Cc: Vadim Pasternak > Cc: platform-driver-x86@vger.kernel.org > --- > drivers/platform/mellanox/mlxbf-tmfifo.c | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff -- a/drivers/platform/mellanox/mlxbf-tmfifo.c b/drivers/platform/mellanox/mlxbf-tmfifo.c > --- a/drivers/platform/mellanox/mlxbf-tmfifo.c > +++ b/drivers/platform/mellanox/mlxbf-tmfifo.c > @@ -53,7 +53,7 @@ > struct mlxbf_tmfifo; > > /** > - * mlxbf_tmfifo_vring - Structure of the TmFifo virtual ring > + * struct mlxbf_tmfifo_vring - Structure of the TmFifo virtual ring > * @va: virtual address of the ring > * @dma: dma address of the ring > * @vq: pointer to the virtio virtqueue > @@ -113,12 +113,13 @@ enum { > }; > > /** > - * mlxbf_tmfifo_vdev - Structure of the TmFifo virtual device > + * struct mlxbf_tmfifo_vdev - Structure of the TmFifo virtual device > * @vdev: virtio device, in which the vdev.id.device field has the > * VIRTIO_ID_xxx id to distinguish the virtual device. > * @status: status of the device > * @features: supported features of the device > * @vrings: array of tmfifo vrings of this device > + * @config: non-anonymous union for cons and net I wonder what information this adds? It's not documenting anything else than C syntax, IMO. Would it be possible to make kerneldoc not give warning from a named union which is already fully documented? -- i. > * @config.cons: virtual console config - > * select if vdev.id.device is VIRTIO_ID_CONSOLE > * @config.net: virtual network config - > @@ -138,7 +139,7 @@ struct mlxbf_tmfifo_vdev { > }; > > /** > - * mlxbf_tmfifo_irq_info - Structure of the interrupt information > + * struct mlxbf_tmfifo_irq_info - Structure of the interrupt information > * @fifo: pointer to the tmfifo structure > * @irq: interrupt number > * @index: index into the interrupt array > @@ -150,7 +151,7 @@ struct mlxbf_tmfifo_irq_info { > }; > > /** > - * mlxbf_tmfifo_io - Structure of the TmFifo IO resource (for both rx & tx) > + * struct mlxbf_tmfifo_io - Structure of the TmFifo IO resource (for both rx & tx) > * @ctl: control register offset (TMFIFO_RX_CTL / TMFIFO_TX_CTL) > * @sts: status register offset (TMFIFO_RX_STS / TMFIFO_TX_STS) > * @data: data register offset (TMFIFO_RX_DATA / TMFIFO_TX_DATA) > @@ -162,7 +163,7 @@ struct mlxbf_tmfifo_io { > }; > > /** > - * mlxbf_tmfifo - Structure of the TmFifo > + * struct mlxbf_tmfifo - Structure of the TmFifo > * @vdev: array of the virtual devices running over the TmFifo > * @lock: lock to protect the TmFifo access > * @res0: mapped resource block 0 > @@ -198,7 +199,7 @@ struct mlxbf_tmfifo { > }; > > /** > - * mlxbf_tmfifo_msg_hdr - Structure of the TmFifo message header > + * struct mlxbf_tmfifo_msg_hdr - Structure of the TmFifo message header > * @type: message type > * @len: payload length in network byte order. Messages sent into the FIFO > * will be read by the other side as data stream in the same byte order. > @@ -208,6 +209,7 @@ struct mlxbf_tmfifo { > struct mlxbf_tmfifo_msg_hdr { > u8 type; > __be16 len; > + /* private: */ > u8 unused[5]; > } __packed __aligned(sizeof(u64)); > > --8323329-2105164461-1695745138=:1894--