Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2491506rdb; Wed, 4 Oct 2023 02:57:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCwpEcTSi6wD3QornRjoW0S9pAtK/3zeXaoXBs6NkgQNlNNz2DznzXhBPZj3JCupu5riy3 X-Received: by 2002:a1f:cb42:0:b0:49b:289a:cc3f with SMTP id b63-20020a1fcb42000000b0049b289acc3fmr1529577vkg.3.1696413465375; Wed, 04 Oct 2023 02:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696413465; cv=none; d=google.com; s=arc-20160816; b=PqVIsrYBDOYRmbkf2bzQ6gAdAyjUpbENXNAlQV7bJnQp5TrF+ThSsBeDYmrCWJ0LzT byGUJMA2D4yys9NG7DgOF6QgbeqfACdLHDCizeaYTKDar5lhi2ACw3OkARx7fNDFvA9m 8btX6BtvJbvBzJqcBgsDPsNEZBIPWHyay5UNSkCUamjZ14/KZdbHUJdAXOINL0y/d5lb UhsYPNRy8bGIQGelRc/dabnGvy0zV/SFFbSJTf3NI7qf5OvcHdj3Nk5wMyoR/VnRnOHt CivPYQda22G2f//AGx2TFnSN/uAc+z9WmHQ0ge1W3sV7QpQYtL9lifkjchhiEs63JYKA AMtA== 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=E1DL90R6jzcUOvYCR7LzgiipCsFwBXKgB5RMgIN+6tA=; fh=rOxFEF4uCP9JM5nBJrFHrGWnYsOPBBcHFBhHOuJXvoQ=; b=HeAgpqSz7qkPMAHQ6kO6AFwRZH6E8+jBduuQSt9VHlVi73ZEy4rcjibaGTYR15//5u 28CM+eGy16auoZJYt80+MF8K+JIiYTDJK+65jfTkZVYwlK7E+HsfXLReeEPlFAmLiUT1 5Z+fm0WigcTzT1j9XpReWYtZWVLPWR4kCM208S/ReAS4yuBz/kFWANcXNZaUQ+u0kUZL xoKCokOKOVgu/0+DXqcv7d4Z8ZvZwq0dtGYHQTNDUsDancriKJ1pLtyIxecUrVNXEISD tEIw7jyndK4OtIpybOF3PfDo8H8ZRj08VfXrV1RB1BJbICCG5i279kGzIj1c9AdxQMYg lWsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ql3c0kBk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id o24-20020a63e358000000b0057d7cff25c7si3503321pgj.417.2023.10.04.02.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ql3c0kBk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 585538025170; Wed, 4 Oct 2023 02:57:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235597AbjJDJ5R (ORCPT + 99 others); Wed, 4 Oct 2023 05:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232909AbjJDJ5P (ORCPT ); Wed, 4 Oct 2023 05:57:15 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E6ADAF for ; Wed, 4 Oct 2023 02:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696413388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E1DL90R6jzcUOvYCR7LzgiipCsFwBXKgB5RMgIN+6tA=; b=Ql3c0kBk8fPLa8E5/hLgTmMd/qpxxNGVh/U8P6NuX3Mln4HQFWG3qlFoPCWoySBIplPM/8 fQrEC7dc4GQCeVRaXwXpHk1kRkjmCfeF5gTdjbiH/FggBmdFwJt2bvUv7fyW3t6rirAbWd S7ftfq0lntCTFdK8Dsrt+OOC2Hy/+HI= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-361-rUZTjH2WPJqowZxEzIdYGQ-1; Wed, 04 Oct 2023 05:56:25 -0400 X-MC-Unique: rUZTjH2WPJqowZxEzIdYGQ-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-9a1cf3e6c04so89537766b.3 for ; Wed, 04 Oct 2023 02:56:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696413384; x=1697018184; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E1DL90R6jzcUOvYCR7LzgiipCsFwBXKgB5RMgIN+6tA=; b=Ii3JQ1KEHbLJPI8HgAKR+CWbOEwOiRXfQW/Fq7gIBUEpafHU5DhAXIlioe/jJHaAY0 1w2fL/qRpDHQzJkKw8Nwr9rt9j0iX/WjWm8CGhKYPDolBQ1AvmFZnKjsX065TlxbuAsP UNpj3gnRhf97NlZTM39a2dVMaotQ4XufMu2/Iu8DqsIQmJesLEK2CMQNgPvhpIu0ZyjG Xr1AygM1Z5HSPjam+evNnnKL0UCoRp7YjyyDoiw0N1BxR5ojXilPY/CF3mFU0li8pwPX wEaN1BuCqMujYWyMk6XjYenYTSL+fkm4/Q0YDwIl1e+rfJkAV/qw6TxkGsQWp4nscTEw G9dA== X-Gm-Message-State: AOJu0YxgG582JBXa0TWFTL1O5LvqGn2ZfJQRKdSPwvnCD7OXez4/dpGC JY4306lrBp3LkZ9MZC1daFT6K9uOogS12aR+rMf0qpd3I+svNRfNkEDwPE9fhQZLDRxnL5rkf04 8avlmj+WBPsq//uvraCI4ZVBR1jMjwuET X-Received: by 2002:a17:907:2714:b0:9b6:53a9:792c with SMTP id w20-20020a170907271400b009b653a9792cmr1453478ejk.15.1696413383917; Wed, 04 Oct 2023 02:56:23 -0700 (PDT) X-Received: by 2002:a17:907:2714:b0:9b6:53a9:792c with SMTP id w20-20020a170907271400b009b653a9792cmr1453470ejk.15.1696413383737; Wed, 04 Oct 2023 02:56:23 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id l12-20020a170906078c00b0099ce188be7fsm2518617ejc.3.2023.10.04.02.56.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 02:56:23 -0700 (PDT) Message-ID: <015b0586-44b8-fa1f-a693-63edccd2cc66@redhat.com> Date: Wed, 4 Oct 2023 11:56:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] platform/mellanox: tmfifo: fix kernel-doc warnings Content-Language: en-US, nl To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: kernel test robot , Liming Sun , =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= , Mark Gross , Vadim Pasternak , platform-driver-x86@vger.kernel.org References: <20230926054013.11450-1-rdunlap@infradead.org> From: Hans de Goede In-Reply-To: <20230926054013.11450-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:57:42 -0700 (PDT) Hi, On 9/26/23 07:40, 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 Thank you for your patch/series, I've applied this patch (series) to the pdx86 fixes branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes Note it will show up in the pdx86 fixes branch once I've pushed my local branch there, which might take a while. I will include this patch in my next fixes pull-req to Linus for the current kernel development cycle. Regards, Hans > --- > 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 > * @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)); > >