Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3816154rwj; Tue, 20 Dec 2022 02:14:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXuqxkZdY8L0TOW9d4s0OsOH/F1SYDPtYjisbD6606fl6VIRLKWFMgrfgdaYhWDpA0rlPvNr X-Received: by 2002:a17:907:c716:b0:7c0:e7a7:50b with SMTP id ty22-20020a170907c71600b007c0e7a7050bmr2785963ejc.48.1671531243708; Tue, 20 Dec 2022 02:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671531243; cv=none; d=google.com; s=arc-20160816; b=qlo6ywnk2AQebmfBAo3zy1RYMYC/zQwR4ofV8w/MzTOVNAtGvW5XVS4/zDOSeo7xDo 6a88rovw4AZYTyj2qJPDCsjVkbsPzWWvtX1/0zgDT/0djmSvKkwyHsCc5vXZPfdZhQFU klX9F/zGr3XRz6GSbHbuJ1ntXuK86Pz58yrhLIRVm82V6OZeI/JQd+BAY1eAXi3xij9/ C6V6wbnaoJIVhvc2+kMa/u1SnTrnn3pyIdUGGTt8Qq5YEYKbycqkviIBKKLRywMFOGBK gSMLvgCHvjShpAr3pyE2kIsdp4Ki5cT5jA2k1Fj4LMekt0yFM5t63XhiUleC9MY2vKtD Uo6g== 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=rkAzQ3wvW2WOGvg+w0vzA3Jt6Cpj55oh+9I2+sAxDPU=; b=V0CMwCElFzPHyNcnq4OkMT8CC/anbmbPhzUaE+peSjGCBLgp47uUCnmxUacKiS3QL9 3zeNC/G8MvxOGn2f8qDCPoruf8I3y09sjY8M3nzofYW7ZD2aOXPl/fpYGLJ93NddQ+V3 lwQ7WvtGAEtRMQZdOaJTlCXIRb45RKwlfo7oxbiLj3U/WxL6ogzgwgd26ajpxUTxTpJ7 7EQvkfq3j0HBGWkcFcSNveV3/+7MbFY9OJqOd4qg2O/qW2GlwYQK3eklgrD454E4STRW awgBPpVydjKDn3XTQgv1d2B49SGrrl7DtENKfsyJ7q5AtxE2RoOF11XRmS1Hz3obomYf 2D3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mSzvmpUK; 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 b8-20020a056402084800b004775e6e0512si8952337edz.121.2022.12.20.02.13.24; Tue, 20 Dec 2022 02:14:03 -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=mSzvmpUK; 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 S233065AbiLTJsf (ORCPT + 70 others); Tue, 20 Dec 2022 04:48:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbiLTJsd (ORCPT ); Tue, 20 Dec 2022 04:48:33 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3182B46; Tue, 20 Dec 2022 01:48:31 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 682A66602CA4; Tue, 20 Dec 2022 09:48:30 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671529710; bh=+UeG/t8P+OtU1McVRjaNAutZvdie8zzl6FllAp34G0I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mSzvmpUKp6IPOVDQbTVALqil8LoCSJeOkeNxrlV1o46X3tXNtbUgafurypeqRxgCU LrVWIKiMjNs2N5pZ1RRM2YGRhSQf+FvhRmxACS42HRhlSpYfOP/YdItGC35zi2/x4w qB3DuMABQ9triLkO7jYbgO2Qi6Ot7L2clBaxiQLP/IayiGwQ+mGaB4EDs0xM0zFURT wGfilln7bSuXVQ+Z2La+YPr+xAZ1ObOjJYmzwHZp2sBOqny6mYD19QQ4muAGDpaWcP mA4h+qogAW72SJzP5GBQnoTIM55x2f7RBK6pFOISo2pz45fvN2fE9qLghCrEKLnhaS F5zaT7iYS/4nA== Message-ID: Date: Tue, 20 Dec 2022 10:48:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] virtio: fix virtio_config_ops kerneldocs Content-Language: en-US To: =?UTF-8?Q?Ricardo_Ca=c3=b1uelo?= , 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 References: <20221220073709.2687151-1-ricardo.canuelo@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221220073709.2687151-1-ricardo.canuelo@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 20/12/22 08:37, Ricardo Cañuelo ha scritto: > 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. To avoid getting the same warning in the future (developer mistake and/or other reasons), what about dropping this instance of "Note:" entirely? I think that something like... the dev->feature bits if it wants. Note that despite the name.... Cheers, Angelo