Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3919757rwj; Tue, 20 Dec 2022 03:52:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvMN1L5QHD1BS6ictGR0vZHoagcjBHkqmJYcuvVrSnF1UNGKLLfhEYtgj9oEhTGs1CWWmdq X-Received: by 2002:a05:6402:408:b0:477:f0d8:9e8b with SMTP id q8-20020a056402040800b00477f0d89e8bmr10497051edv.33.1671537177214; Tue, 20 Dec 2022 03:52:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671537177; cv=none; d=google.com; s=arc-20160816; b=UQrasJB1AIHr2tugCCgDKZLxYbSz0u44UxrD1zfRk/GsZ0kDVE8GzqmYlCI+DrfQQm aS79mKk48LPh1i2c8FlXZyV4W+DeFV2wgt28Tt5ocyiKPeEZcGn1b01jVxBmVw3niw7M qf1QSJk2K00IsuWHiv50ZjScrk0vxkf4jE86eJCk6Afc86X7WUR3Pte1rqTWSy2K16Uz pWa/WLMv5BmbZtaBm4FACCsGO2Nr7qlUvr5YLsTtRk6//pR9ibCfXv8ikV7PWEStrAG3 sZE2PVWPnX2KTgS+/yPB/ZtZwnbGMUwm/D94dInvcgeyIny/gM9knc27QLc9ILK9Zll5 khsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7a+5y93f4CEM76hoZILajwanmAtm9yvjPLzZAIqF7iI=; b=lxMkpnPF0vWOVe3cAtyVUHSkrO3PXmGvNAKBaFg2nl54/1NuA0zZfMdHpdaoJUg5iE 5dQ+tMsWYcOvLl3WDMNXP6OIx+pmEOouv7cKaD/AkwMOwqkdl7ZyY8r63orKxP9tzTHl 2SFDchnavsfgbKh6M9ivdEnT35fiYGg3MLC7cSrkejD9VJHipO6AQTiN7eFknuEnMASm tJgxuxHWClIYOYmsGQ6hBGJ9RUsbfke5dD+9InTHXRxVl2ZtgOLakPw1wc1+XPfJPzdG tjAl8x9XHNhIultt0NbjYtJtDCiJIojWOd53rMBh5RL2MErJjA3ObuQOoKyrO9TYUlO8 ou+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Afa6aH9w; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a05640235d500b0046d0e157e51si1699955edc.439.2022.12.20.03.52.40; Tue, 20 Dec 2022 03:52:57 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Afa6aH9w; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233256AbiLTLcw (ORCPT + 70 others); Tue, 20 Dec 2022 06:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233240AbiLTLco (ORCPT ); Tue, 20 Dec 2022 06:32:44 -0500 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 40C9819299 for ; Tue, 20 Dec 2022 03:32:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671535920; 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=7a+5y93f4CEM76hoZILajwanmAtm9yvjPLzZAIqF7iI=; b=Afa6aH9wq359acAj7TBklxSdIl2YH430rgt4RMh98kikR0Ew3gnf/QUSpxgd1KmvOE6bD0 KfsXqRMWGjNgi9apgjnW8vK7ltGkwmHLocSR7Ptu5CjykQ23r4SmhU9VRGPvPKFHSKhUEE dD71/+iQ8jw4dG4rbgWkc9B95CPpV1U= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-639-jBden8a5PiGmIHRCRLic2w-1; Tue, 20 Dec 2022 06:31:58 -0500 X-MC-Unique: jBden8a5PiGmIHRCRLic2w-1 Received: by mail-qv1-f69.google.com with SMTP id ng1-20020a0562143bc100b004bb706b3a27so7054928qvb.20 for ; Tue, 20 Dec 2022 03:31:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7a+5y93f4CEM76hoZILajwanmAtm9yvjPLzZAIqF7iI=; b=I4yqhUemtignaVyvb/i8lmK02Tjs+cOb4Umx6Nxewp6NR/QwX1QQCealDzCmLLEsl+ hBnUsb/uyXkJlpYqC8uoAwa6Z2x6KWWdtQRlgs85gIt8xGtLR8iyx+lvqRp3V5KGlHl7 oRcmpQOlEjvEi7+XEye+DMNY/8SnZPIlO0DZWopwGzxd277mQiV4gLQ9+hBNwbjUA3Q4 ITVBj9L8F6EXYuhYqTLEaRcqs8RnpWGieQQIK52a20Khgo30GmPVYGReog1tGxzJ829d cjD1sadBw8MYumKbtQTfEe42WaeYHRAt4Wf955qZUeQLA6fe9Qp/OUiBKkl+ZxHaSZ3p LmGg== X-Gm-Message-State: ANoB5pnf1rKh+PXi5KWltE5EOEa3oo17+0TGqSpSb+c3hvAlIW/kkFz0 Pf2Fd6XIfM2Dk0ejpJ6DIJ0AjsiZh77+QfCH3kjp1YF9pEYpenqasB8vPql3F5MsKEEuZ1+WLaL VgAAkphnhsUUg1K0iM35tY7ZB X-Received: by 2002:ac8:424e:0:b0:3a8:5d1:aabc with SMTP id r14-20020ac8424e000000b003a805d1aabcmr59492062qtm.15.1671535918375; Tue, 20 Dec 2022 03:31:58 -0800 (PST) X-Received: by 2002:ac8:424e:0:b0:3a8:5d1:aabc with SMTP id r14-20020ac8424e000000b003a805d1aabcmr59492035qtm.15.1671535918082; Tue, 20 Dec 2022 03:31:58 -0800 (PST) Received: from redhat.com ([37.19.199.118]) by smtp.gmail.com with ESMTPSA id y23-20020ac87097000000b003a50b9f099esm7358183qto.12.2022.12.20.03.31.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 03:31:57 -0800 (PST) Date: Tue, 20 Dec 2022 06:31:52 -0500 From: "Michael S. Tsirkin" To: Ricardo =?iso-8859-1?Q?Ca=F1uelo?= Cc: sfr@canb.auug.org.au, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, virtualization@lists.linux-foundation.org, kernel@collabora.com Subject: Re: [PATCH v3] virtio: fix virtio_config_ops kerneldocs Message-ID: <20221220063049-mutt-send-email-mst@kernel.org> References: <20221220112943.2727137-1-ricardo.canuelo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221220112943.2727137-1-ricardo.canuelo@collabora.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 On Tue, Dec 20, 2022 at 12:29:43PM +0100, Ricardo Ca?uelo wrote: > Fixes two warning messages when building htmldocs: > > warning: duplicate section name 'Note' > warning: expecting prototype for virtio_config_ops(). > Prototype was for vq_callback_t() instead > > Link: https://lore.kernel.org/linux-next/20221220105956.4786852d@canb.auug.org.au/ > Fixes: 333723e8bc393d ("docs: driver-api: virtio: virtio on Linux") > Reported-by: Stephen Rothwell > Signed-off-by: Ricardo Ca?uelo > Reviewed-by: Bagas Sanjaya I merged v2 already - squashed it in so Fixes isn't necessary. I dropped Link: as well, probably going overboard for a fixup. > --- > Changes in v3: > - Added a Fixes tag referencing the commit that revealed the warning > messages (suggested by Bagas Sanjaya and Michael S. Tsirkin) > > Changes in v2: > - Reword the "Note" comment in the kerneldoc so that it doesn't look > like a kerneldoc "Note" section (suggested by AngeloGioacchino Del > Regno) > - Link, Reported-by and Reviewed-by tags added (suggested by Bagas > Sanjaya) > > include/linux/virtio_config.h | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h > index 4b517649cfe8..2b3438de2c4d 100644 > --- a/include/linux/virtio_config.h > +++ b/include/linux/virtio_config.h > @@ -16,8 +16,10 @@ struct virtio_shm_region { > u64 len; > }; > > +typedef void vq_callback_t(struct virtqueue *); > + > /** > - * virtio_config_ops - operations for configuring a virtio device > + * struct virtio_config_ops - operations for configuring a virtio device > * Note: Do not assume that a transport implements all of the operations > * getting/setting a value as a simple read/write! Generally speaking, > * any of @get/@set, @get_status/@set_status, or @get_features/ > @@ -69,7 +71,8 @@ struct virtio_shm_region { > * vdev: the virtio_device > * This sends the driver feature bits to the device: it can change > * the dev->feature bits if it wants. > - * Note: despite the name this can be called any number of times. > + * Note that despite the name this can be called any number of > + * times. > * Returns 0 on success or error status > * @bus_name: return the bus name associated with the device (optional) > * vdev: the virtio_device > @@ -91,7 +94,6 @@ struct virtio_shm_region { > * If disable_vq_and_reset is set, then enable_vq_after_reset must also be > * set. > */ > -typedef void vq_callback_t(struct virtqueue *); > struct virtio_config_ops { > void (*get)(struct virtio_device *vdev, unsigned offset, > void *buf, unsigned len); > -- > 2.25.1