Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3597573ybt; Tue, 30 Jun 2020 06:57:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhCK3sVD9r5pmt/f3hDZnu1t0AXK3kA0SjnCvlAIiHLB2dvvAbza5aDdKRCbM0xZHG60NW X-Received: by 2002:aa7:c991:: with SMTP id c17mr15455808edt.278.1593525463482; Tue, 30 Jun 2020 06:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593525463; cv=none; d=google.com; s=arc-20160816; b=e2hCG7xkV6qH9fLhlduLbWTuPN9PTXjfWj6ow/Sn/oqrd05GEnoZZ6JiSywqidNvKp SQEFlWTp6E+q5HzWL57qscThYRBU9qg7g8AmvkHXbbZSzjDjvclLB/Xh+ZSfzw7JjD7k vePj7S93ZgihMSY7E/6L1PvOBPrvfHZz3ZQbGYBGuvvsquzhnojK1xF/JhEgIrGCt+8G XyQciO4j1fyi8aNZ+js9/f3+aQ9khRQL4w0kUUbz7fsWepw40BMTKu48sCcofKE8G7A7 TaY+jIkYVu6WHNrT4i+MVZYiERfFfE68MalfBNo5lkZ7BKeUSM5SOQE2oH08rOBccCBX BhCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ihwB2j52q4JKu9sE46KLVBy86wjLuHmVQi4idxjX6zQ=; b=m+f9qGqZGQsRyx3DiJHgqJqi5yFwWbB0pFgofdpELVFKOn+2McJqF2XOpFuRhBowq0 /Kg0S1odjf9AOYW4TF74SLmjQhPgC9aDtvSuZ0iQNBQSNvhgSeB/jUjc8bikXLJYhZ4o KTNvIcbsOlEhQBIbFTfWXHBKMK1e8GmP/alg5GqhqU5whTMRs6AaxLDHtZuA1MJG4y8W Tx7YfJGyRhBdCHd/+zJ+1qNkG7zHbj8hytKwyBgCqAXZrjY3/N0j6BI+r4vLkq1lF4ay sL/n2IKK7ureH9BruJS6mnVpwHxwYLZgx3Pkq54K6dE3hZQDphqdFhfHnvxbKz02jHfq 5O3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jPfxIEh0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si1767974ejn.140.2020.06.30.06.57.20; Tue, 30 Jun 2020 06:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jPfxIEh0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388573AbgF3Nwf (ORCPT + 99 others); Tue, 30 Jun 2020 09:52:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388449AbgF3Nvi (ORCPT ); Tue, 30 Jun 2020 09:51:38 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CB6C08C5E0 for ; Tue, 30 Jun 2020 06:51:37 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id q15so18895644wmj.2 for ; Tue, 30 Jun 2020 06:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ihwB2j52q4JKu9sE46KLVBy86wjLuHmVQi4idxjX6zQ=; b=jPfxIEh0bd6mQeJBi3dfCfnz54R8uS9N1AKe094sja57OTdh7rY41T9MU+O33WQwwg T1+5SlqMCsiKM0opraHCUtSIiPqNE7mQGkyE6C2N7TQynygN1R8SWdr/QoAgphFup8BS 2gQPTmG2Xk3e4tHyeeKZzZZjqf26WxbdyZwZzEM8OphbpdBiIIy+r9oIgMnE/IkdisCU JoZZzFbyrXwCVlFvxTAUmVvDxfU6jNg03HGRHSSwlBPKmqv0ZeecC5mNPJMKMhN3BCHx DpmQTj7fMq1LovJnDKyxm6MHE9MpEqkhJ37cOyvIeM7aMDGrKEzNl//uWAEaK6cWX72g SrFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ihwB2j52q4JKu9sE46KLVBy86wjLuHmVQi4idxjX6zQ=; b=D4g4U5JIoKLO2Dl3dBzpPN8+gc0cXhpklsyDRt3SQ3WNgmLrhkH419vsBq2XsegLLE PFwleuwjB4b7VFEOwxkNCxqdM0ssf3sB2va+rMc9sjSmv2nMVWflrV0EnFWIJm5CHpM4 b0/oSgENbtKmEXbAYYxO1Q114gxOz2tk+sePinkwLGGH9YMZqEe/NJsnZ6YnIHMNMFFG lYhFWFR35qsJb2wJGr1IF5eaKgOVsL/lbImnLi6ONwdjW7wX8PkVePW+uP4+H4t1njJl fDtzZvm5bxbDNq5wMQC8b/KpCBlFXZ67QauC7IYscYJr8npVfRbGoBtbXgxIbE0IV88J xzRg== X-Gm-Message-State: AOAM533A1SA6foiotmb2Zv+f31o0WbGolZNBDGPkR3quKcPxay9/63lh DkXP2p84o1d1NNuublhm/BV06g== X-Received: by 2002:a1c:a557:: with SMTP id o84mr21910730wme.42.1593525096056; Tue, 30 Jun 2020 06:51:36 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id t4sm3876746wmf.4.2020.06.30.06.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 06:51:35 -0700 (PDT) From: Lee Jones To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones Subject: [PATCH 21/30] misc: mic: scif: scif_nodeqp: Fix a bunch of kerneldoc issues Date: Tue, 30 Jun 2020 14:51:01 +0100 Message-Id: <20200630135110.2236389-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200630135110.2236389-1-lee.jones@linaro.org> References: <20200630135110.2236389-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Includes; missing function argument documentation, misnamed argument tags, the promotion of obvious kerneldoc header candidates and an ordering issue (functions must follow the kerneldoc which describes them). Fixes the following W=1 kernel build issues: drivers/misc/mic/scif/scif_nodeqp.c:452: warning: Function parameter or member 'scifdev' not described in 'scif_node_connect' drivers/misc/mic/scif/scif_nodeqp.c:730: warning: Function parameter or member 'unused' not described in 'scif_exit' drivers/misc/mic/scif/scif_nodeqp.c:730: warning: Excess function parameter 'msg' description in 'scif_exit' drivers/misc/mic/scif/scif_nodeqp.c:748: warning: Function parameter or member 'unused' not described in 'scif_exit_ack' drivers/misc/mic/scif/scif_nodeqp.c:748: warning: Excess function parameter 'msg' description in 'scif_exit_ack' drivers/misc/mic/scif/scif_nodeqp.c:939: warning: Function parameter or member 'scifdev' not described in 'scif_node_add_nack' drivers/misc/mic/scif/scif_nodeqp.c:988: warning: Function parameter or member 'scifdev' not described in 'scif_get_node_info_resp' drivers/misc/mic/scif/scif_nodeqp.c:1070: warning: cannot understand function prototype: 'int scif_max_msg_id = SCIF_MAX_MSG; ' drivers/misc/mic/scif/scif_nodeqp.c:1129: warning: Function parameter or member 'unused' not described in 'scif_loopb_wq_handler' drivers/misc/mic/scif/scif_nodeqp.c:1129: warning: Excess function parameter 'work' description in 'scif_loopb_wq_handler' Signed-off-by: Lee Jones --- drivers/misc/mic/scif/scif_nodeqp.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/misc/mic/scif/scif_nodeqp.c b/drivers/misc/mic/scif/scif_nodeqp.c index ea084626fe116..e0748be373f19 100644 --- a/drivers/misc/mic/scif/scif_nodeqp.c +++ b/drivers/misc/mic/scif/scif_nodeqp.c @@ -443,6 +443,7 @@ static void scif_deinit_p2p_info(struct scif_dev *scifdev, /** * scif_node_connect: Respond to SCIF_NODE_CONNECT interrupt message + * @scifdev: SCIF device * @dst: Destination node * * Connect the src and dst node by setting up the p2p connection @@ -719,7 +720,7 @@ scif_init(struct scif_dev *scifdev, struct scifmsg *msg) /** * scif_exit() - Respond to SCIF_EXIT interrupt message * @scifdev: Remote SCIF device node - * @msg: Interrupt message + * @unused: Interrupt message (unused) * * This function stops the SCIF interface for the node which sent * the SCIF_EXIT message and starts waiting for that node to @@ -740,7 +741,7 @@ scif_exit(struct scif_dev *scifdev, struct scifmsg *unused) /** * scif_exitack() - Respond to SCIF_EXIT_ACK interrupt message * @scifdev: Remote SCIF device node - * @msg: Interrupt message + * @unused: Interrupt message (unused) * */ static __always_inline void @@ -930,6 +931,7 @@ scif_node_add_ack(struct scif_dev *scifdev, struct scifmsg *msg) /** * scif_node_add_nack: Respond to SCIF_NODE_ADD_NACK interrupt message + * @scifdev: Remote SCIF device node * @msg: Interrupt message * * SCIF_NODE_ADD failed, so inform the waiting wq. @@ -946,8 +948,9 @@ scif_node_add_nack(struct scif_dev *scifdev, struct scifmsg *msg) } } -/* +/** * scif_node_remove: Handle SCIF_NODE_REMOVE message + * @scifdev: Remote SCIF device node * @msg: Interrupt message * * Handle node removal. @@ -962,8 +965,9 @@ scif_node_remove(struct scif_dev *scifdev, struct scifmsg *msg) scif_handle_remove_node(node); } -/* +/** * scif_node_remove_ack: Handle SCIF_NODE_REMOVE_ACK message + * @scifdev: Remote SCIF device node * @msg: Interrupt message * * The peer has acked a SCIF_NODE_REMOVE message. @@ -979,6 +983,7 @@ scif_node_remove_ack(struct scif_dev *scifdev, struct scifmsg *msg) /** * scif_get_node_info: Respond to SCIF_GET_NODE_INFO interrupt message + * @scifdev: Remote SCIF device node * @msg: Interrupt message * * Retrieve node info i.e maxid and total from the mgmt node. @@ -1058,6 +1063,7 @@ static void (*scif_intr_func[SCIF_MAX_MSG + 1]) scif_recv_sig_resp, /* SCIF_SIG_NACK */ }; +static int scif_max_msg_id = SCIF_MAX_MSG; /** * scif_nodeqp_msg_handler() - Common handler for node messages * @scifdev: Remote device to respond to @@ -1067,8 +1073,6 @@ static void (*scif_intr_func[SCIF_MAX_MSG + 1]) * This routine calls the appropriate routine to handle a Node Qp * message receipt */ -static int scif_max_msg_id = SCIF_MAX_MSG; - static void scif_nodeqp_msg_handler(struct scif_dev *scifdev, struct scif_qp *qp, struct scifmsg *msg) @@ -1117,7 +1121,7 @@ void scif_nodeqp_intrhandler(struct scif_dev *scifdev, struct scif_qp *qp) /** * scif_loopb_wq_handler - Loopback Workqueue Handler. - * @work: loop back work + * @unused: loop back work (unused) * * This work queue routine is invoked by the loopback work queue handler. * It grabs the recv lock, dequeues any available messages from the head -- 2.25.1