Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp825869rdb; Thu, 18 Jan 2024 23:06:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFp7MGJKXRbpdZ01oJOnRyAsBbRwAnGXHK/CcvAd+kwMKGWwCchtrDfhDTtq/JXZaItuutf X-Received: by 2002:a05:6830:3487:b0:6e0:16cb:4b5c with SMTP id c7-20020a056830348700b006e016cb4b5cmr2673362otu.54.1705647977062; Thu, 18 Jan 2024 23:06:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705647977; cv=pass; d=google.com; s=arc-20160816; b=RKZPVFlxWdon4MzvBKw4Y9OBCw+VGKAXgENEnc+dvJIAHE+4X/ufzoqFbRBCu0e/vX TBEz2SYK0S01o0NMqiNL5N7VB1fNsBq+REs9HZJcc1XKN7/i/W2oh9JMnhk5nCDj3rQw zwhobZll4Myrk+OHJhCLsjL7WIQMvTiCqohu3psVGURwRKY0c8YvMCI6ROXfFR4v1pEO pgGRrMdhdLSy0vm0/t+tKi3B4RbvSjs9AKEqvcrhj81xWrG21VJM/H3x20kZlpBtSAse fF8FHym6Hi1mb8KpPL+rxI5GzKVhLm/r8YSVZzmjrui9ySuxUT+bDOg1tGSx4Pd/LoXi BmeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ItTupsxYRq7Jy8o7qxit6OVbSsCGvKp39WxYjy3hMns=; fh=jHZgS+ib4QdHo5n5rAWRowjR9lBF0KJwO7tCTt25fPM=; b=x+BPsAa0IuSLbV65j04cQrOXM1AmwoKpbANDMhDJYF5NG1HoYB2dNnnySxgmhZRbGJ mNFqtkDSdK05oyNrlhWCkCPlAfd0feRFdfJnneS+xU8Z2rb0ULlXIxzPlU/WSlQRbw6F JvIUieigzsdGdzDMMSsmeJrTQAJX4Ogob2mgRlPv6MJj8sok7VIzUp8KoyyCET1pln89 zFoHbDKUCs0n2bx894iFBQWq7ZzoTP6PCpKWYYBKYsz7ClXTd/G3aCpQP6fa7hbas/Wg lX7WNlgz7yUohNIt2Y7ww+0hkwbFN4OMv9W2DdomFpPylxJGETtKZWwbsiOdTJHAdX/p 1E0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=A1Md2Scn; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-30737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30737-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c1-20020a63d501000000b005ce52db08fbsi2897195pgg.695.2024.01.18.23.06.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 23:06:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=A1Md2Scn; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-30737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30737-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B38D72860FC for ; Fri, 19 Jan 2024 03:28:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8D654A12; Fri, 19 Jan 2024 03:28:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="A1Md2Scn" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4FB346AF; Fri, 19 Jan 2024 03:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705634928; cv=none; b=bjPQjnvEaICTydEt/vQ2mrJxVAkDmnJvRUV5lKYGP7f2tu1V4FZtQluKJRTSM4XzkxM74bdHezKJewFjaNr3Vw4Lk4gf/idvuP9ljH24mGl2mhgV1GsKu8yOd2GCA0YdzFOKLKCr9c7pmLcGQmhUdZzqH/J6MvIMKN+XzgaGDNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705634928; c=relaxed/simple; bh=SXRNeozaB9eyQL1XHrCywVwUsZZtLob/giNc6eDZpSc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t/Xi2lMbBGEVp50Ca2FG93JvFn6rQiQHQxhVVe6AORXfQvaavE153vKx+0nHhUH6TU7hRv9i54SVHwSM52ZtNgtHMaonJbnMr0fIawCzN9e41XFzwWpA1d38zsbYPlIAgPhPH4ERjBS5xKNvv4WtUhTYVqgcnNlaOEMle2Y7qVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=A1Md2Scn; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=ItTupsxYRq7Jy8o7qxit6OVbSsCGvKp39WxYjy3hMns=; b=A1Md2Scn+8fLMgYyrNB0Se3uks qocfkvck8371v+Np9Hq7ITp+fbhM7UXS+A7cparTAatfhs2yLUsWBbMrJ3R+hk4l64FGf/m3OG771 qrczUPTwYQhaPQf1A1WLa+pzaWyz0o4HaFtxsawgKPjDJLPrqGvdgup6rKiqe9OutDaanEI4pt2BV 2VW60qy8o9WzkRElaP83xyrNEgdN96q8Z5P8yVrQ7qL/bReQKUFEvcm/qDBb6CuW3eg3KCdQUrvxe zm7KssHMydlHV9yTwUpHsbI3Lu0DzZi1QBtPgAKj8wmWpr4MNba+BHUoHD9oJI0H0uCPlNnGn0zdz UBXpGMZw==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQfYk-004Obg-0B; Fri, 19 Jan 2024 03:28:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Jon Mason , Dave Jiang , Allen Hubbe , ntb@lists.linux.dev Subject: [PATCH] NTB: ntb_transport: fix all kernel-doc warnings Date: Thu, 18 Jan 2024 19:28:45 -0800 Message-ID: <20240119032845.4065-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix all kernel-doc warnings in ntb_transport.c. The function parameters for ntb_transport_create_queue() changed, so update them in the kernel-doc comments. Add a Returns: comment for ntb_transport_register_client_dev(). ntb_transport.c:382: warning: No description found for return value of 'ntb_transport_register_client_dev' ntb_transport.c:1984: warning: Excess function parameter 'rx_handler' description in 'ntb_transport_create_queue' ntb_transport.c:1984: warning: Excess function parameter 'tx_handler' description in 'ntb_transport_create_queue' ntb_transport.c:1984: warning: Excess function parameter 'event_handler' description in 'ntb_transport_create_queue' Signed-off-by: Randy Dunlap Cc: Jon Mason Cc: Dave Jiang Cc: Allen Hubbe Cc: ntb@lists.linux.dev --- drivers/ntb/ntb_transport.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff -- a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -377,6 +377,8 @@ EXPORT_SYMBOL_GPL(ntb_transport_unregist * @device_name: Name of NTB client device * * Register an NTB client device with the NTB transport layer + * + * Returns: %0 on success or -errno code on error */ int ntb_transport_register_client_dev(char *device_name) { @@ -1966,9 +1968,9 @@ static bool ntb_dma_filter_fn(struct dma /** * ntb_transport_create_queue - Create a new NTB transport layer queue - * @rx_handler: receive callback function - * @tx_handler: transmit callback function - * @event_handler: event callback function + * @data: pointer for callback data + * @client_dev: &struct device pointer + * @handlers: pointer to various ntb queue (callback) handlers * * Create a new NTB transport layer queue and provide the queue with a callback * routine for both transmit and receive. The receive callback routine will be