Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3883077rwj; Tue, 20 Dec 2022 03:18:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXuu0uj3rk7Q0eHrHHcysySWfQMCsLBuwhDeRT9I76z3XPT/GHBwhSq0Jhkp3Oz+GFXpnlsD X-Received: by 2002:a17:902:8c8b:b0:191:3c3f:34ef with SMTP id t11-20020a1709028c8b00b001913c3f34efmr942105plo.1.1671535137788; Tue, 20 Dec 2022 03:18:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671535137; cv=none; d=google.com; s=arc-20160816; b=VCQOhGae7AoLhe+SH8aZIeIrRQnvF70viHqIGGRC8YwtYct7+Z1oi+mX/gvI1gN21u OaNL2VInw8yV9NZcAMfXbYnbmrt0LptGr9Wir37m/hPjG+HW/HJiceV84Au6q4u7LFtg 5LuJLqQ88hq4gx1Ww1jS7rWD/reKGHHYnWFl7DQiNBF5ahKNIFkFQe89hpIWqipopt7i yLdBhRwZBmEhTubODjtnAOFWlp5ZcvbgR4NZkiKaAtFdyFz7bZCtpFmBRymS3l99Zhoj 0UdC2/7cOS8YeXyXx7UebOu9D1hxO3VXHkNnsbRKqZoB0RZ1RlA75/LUA9cbznzYFhPi FCwQ== 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=ywkcyhcObvxEj3WEn7KVR6R4ON6wxpD4DqX1mmnfFzg=; b=XzPb35TqpJvygQYvRvDrfHYqYRwVyUBB03AF/m1G8I4qTySL6Z9kByD/aitQj772IM RQAyQ40SBD1+/zA370dwNEU1eXrgzPDp0puwjD1oHLXdmW95YSehHCtA9SYteccyiuAB qPQ1sdQOLILAhAugad7/yKZWzdj02OdrsydFTK7SSL7DYjI8qR9OfE7SmbjZfSci6b9a isItlCzHgnRLoqhkXfZKbYIqDZR33BuQhyTC7lyXL16a2tYAQL0j9ooNkdODO3Wp4Oa2 YUf6U1HWChArOA+hNV0wcUX6wMUzeZ2UWMU5emlHuAohpOn2flAhIqGGWKw00hmGqUkh UlKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gpq3qspi; 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 i9-20020a170902c94900b001892d820a1fsi13998060pla.571.2022.12.20.03.18.48; Tue, 20 Dec 2022 03:18: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=@collabora.com header.s=mail header.b=gpq3qspi; 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 S233379AbiLTKD2 (ORCPT + 70 others); Tue, 20 Dec 2022 05:03:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbiLTKDA (ORCPT ); Tue, 20 Dec 2022 05:03:00 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A78D41123; Tue, 20 Dec 2022 02:00:48 -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 D671C660000F; Tue, 20 Dec 2022 10:00:46 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671530447; bh=nMaXknuesIFjYA8ox4APV4OBO3+IojYFI34ZeI/Te9k=; h=From:To:Cc:Subject:Date:From; b=gpq3qspiRzlvoR7mrHFfx/fzREj8XZjEQRe1sEpXGt5XkwytzLQdawm/oFdMGxLMH c1Aa/kbRiiMDDm/RrjgoWzasF3NcqaftAPwWIZ/SrhNDXXc/MI21mYqJmXRbEGO0T9 RCUemlzKedztiBB42EmMyDa0xj9bT90G+Q0IIlbEBjxfX+N6oMhrLxb5L5Up7v+vgU ukqZ2fRGKQoLicCivjTjf/N3E/gQ19zPzmaZCGcMheCnKQw4Pi/fjyY3EVlzyP78Jt pm5r+83e7jjKbEGP5iPiswfe2K4QzZzveTCS4VOpenMdH/UIuGRHZC4F+CnO1O8B8B rljI8RNf3wFvw== 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 v2] virtio: fix virtio_config_ops kerneldocs Date: Tue, 20 Dec 2022 11:00:35 +0100 Message-Id: <20221220100035.2712449-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 Link: https://lore.kernel.org/linux-next/20221220105956.4786852d@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Ricardo CaƱuelo Reviewed-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