Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3711314rwj; Tue, 20 Dec 2022 00:25:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GdH+GkgD7smMCfEz7C8hvWIDrdfIISBNHacfgmcsIGrKJ0+XwrrYjOYzcF+hpNu5GF/Sa X-Received: by 2002:aa7:c917:0:b0:46d:8aeb:bc03 with SMTP id b23-20020aa7c917000000b0046d8aebbc03mr41943427edt.22.1671524706589; Tue, 20 Dec 2022 00:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671524706; cv=none; d=google.com; s=arc-20160816; b=p8ePXZsMkODiseizXIn8+S6m0uj64GySZ/xx27K8IoOd5PjFiWgCDpBJ8SEZpkMPz6 X/wauSbD45AicvFtyRdGmoz4qFTunrURZSx7e+SyHHVm+rkRRU7wVTY9JUwVmrXQJEXq vGbZX46SZf2EEafKpNxUZ5L5vOkHbv/J+dSkpU7uOrrN11xsbau5TlVwHJYbt2tVDv2S rUADTmhRNa9NoqhCoeaH4KO+ZoBD+0MGWMfX56DS3PIP4DbeKF91uWFb0bZLYZdjHubj TUz6PNj+vkCJZSV+vwDB2sacTN4YxgTtQgKpgzj8ieZEByXujfGHcKytmjVCv4OK+9o8 cYdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MpDyNWX3wT9TkdvxIiYR76thDPgLMUAilszZrTF8mHY=; b=RE0tNHZd1rttt3q2NYd148RzI3PCJR0vy/E+DUkybEKo+BQ5PXYzVw6jGsUyNDqys9 ecDlorMz/qbkJQle84fCo8FbwA3GI9VrHILXIzHG4H6YQG0QkU3/V6KesPCycl4zthOR ExGEJbDwHdN8WvikHqhmGX95cLsL5KoYNXQf0mVGd9bXWzilHStqmm7Xlr1XD5OQ1n3i hjSsRQ+e8eoeRjmkVI85Hi5s05TyRAv45zMSxRhBM/Aaafg2KzjjrQMelw+PL5ouKYu0 3L+KUyZvv2zAlXIzq8OwryiSHM3Ag+wEFg5JS3NWLWbPSPBhpcjQxttPR2Q5kVasLvXt J7gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nHIVtLA7; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z70-20020a509e4c000000b0046ad8e026e1si873886ede.69.2022.12.20.00.24.49; Tue, 20 Dec 2022 00:25:06 -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=@collabora.com header.s=mail header.b=nHIVtLA7; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233299AbiLTHhk (ORCPT + 70 others); Tue, 20 Dec 2022 02:37:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbiLTHhi (ORCPT ); Tue, 20 Dec 2022 02:37:38 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52552F027; Mon, 19 Dec 2022 23:37:36 -0800 (PST) Received: from localhost.localdomain (unknown [213.194.155.136]) (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: rcn) by madras.collabora.co.uk (Postfix) with ESMTPSA id 69AD76601810; Tue, 20 Dec 2022 07:37:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671521854; bh=A7n0VSq8cd0ak7dktr+xYbXSUP6klaKvgvHdAFhnEWQ=; h=From:To:Cc:Subject:Date:From; b=nHIVtLA7sGGmGpRU+qFlf0MltTc+ydchH+x82IqnCS8C+M3MsZKAfGsNnk6eK0Ct+ 4qJDCU8w/Ows0fwOAO5Inq46XiGY0NXJBsb1Ty3Pyi5w8cIQl9MjZlCtjmd+JS5VpA Nyfe078iV4QT+BYI3KU1M4JVqRPQBC6bbmzkNArG2PBrDOsZ5yAqmaQKlm6dV3ExDN rqoYpGGwy8K6cIwTKyUIArBsVq73eLdBcBv1MNlSCLK+xr1hC8+ohngqko9ZRIg40h sxyRZN5IF7WAgJQ35VvjLnt13qNGTLhibRbKn+Q2o/9QW7ZpV1xM+3OKFgG/3Ufvof bLt8jxGxSlW6A== From: =?UTF-8?q?Ricardo=20Ca=C3=B1uelo?= To: mst@redhat.com 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: [PATCH] virtio: fix virtio_config_ops kerneldocs Date: Tue, 20 Dec 2022 08:37:09 +0100 Message-Id: <20221220073709.2687151-1-ricardo.canuelo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 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 Signed-off-by: Ricardo CaƱuelo --- include/linux/virtio_config.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 4b517649cfe8..f9a33062c089 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/ @@ -68,8 +70,8 @@ struct virtio_shm_region { * @finalize_features: confirm what device features we'll be using. * 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. + * the dev->feature bits if it wants. Note: 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 +93,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