Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1539851ybh; Tue, 14 Jul 2020 00:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz52BV6889pD1cyLVjDKS9bv795lZ8t1UeeoX3r3GqMgzfmmbxFCYH04yZCSeIFvwbiXG7T X-Received: by 2002:aa7:d0d1:: with SMTP id u17mr3138255edo.13.1594710080391; Tue, 14 Jul 2020 00:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594710080; cv=none; d=google.com; s=arc-20160816; b=a33hE09MCXtGlQDPUGMTHVrs58OGn+mFRK/QMHZAlEqPsFTrov668wkVasIt/tMgVL 7+H7AhNF/WTcLKhL0MT32qIMImphK2zcZGTgq45/Wzu2IylHA5iv1kk0N41/Xw1v3ig9 0ggxKiufPD2ODicKinpMbEwCLZqzcXnnuJj+emWKuJMhNBvEiv1NHA3bQKYZYxkwndDS /R4G10+bgKwsIh3ih+vESpilSfBEq7jjr4a0fF70rlhoWSQqST/zh/RUzorpfvyEGvgz kMjFRHmxhCKnrKeQ2QaVrJxxA/+q209A7Pp788cPHT9IaptqW9Q9alcQbOvCVWU/VfXg vklA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=K3d7ZfIxuXWv0fNv+lGGaN/l1i547ZoGZfh4zXqSC18=; b=w/h+ezKtyKVa60G3+2OPEns+3GON3K0ixK+ScTJ3dGoHEOMjiwuwqARTzcj+qN/Tu1 fc09aIz8+qn+VVupFLZJ7ys3Co3c/qt9VjMMA2nsVC75wS5E14MEc6bYUhkCGUQYuMby SnoopiSMXGxjGQ0iIMM4SW9/dm1NrDzliY2QoQq0eIF89fptx+0vMeKHUVn9EW3sboUO uA299ZLyKJ8TjKWmvRhoWKHik74IDv3/EPbbolcNaQ2bceYzlviLvl8safQH8Ng4RWtQ eOlVQaKioow8SzlFRHUT+M8EFGXFjxGWinEUTFcgddqGFEvVl03SkdDftDQkaA8064VG KiZg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si10954100edq.111.2020.07.14.00.00.57; Tue, 14 Jul 2020 00:01:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbgGNG6L (ORCPT + 99 others); Tue, 14 Jul 2020 02:58:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:34884 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgGNG6J (ORCPT ); Tue, 14 Jul 2020 02:58:09 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 400D6AEAA; Tue, 14 Jul 2020 06:58:10 +0000 (UTC) Subject: Re: [PATCH v2 04/29] scsi: fcoe: fcoe: Fix various kernel-doc infringements To: Lee Jones , jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org References: <20200713074645.126138-1-lee.jones@linaro.org> <20200713074645.126138-5-lee.jones@linaro.org> From: Hannes Reinecke Message-ID: <06bc5e03-04b0-7e09-18f4-d9fd536b714b@suse.de> Date: Tue, 14 Jul 2020 08:58:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200713074645.126138-5-lee.jones@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/13/20 9:46 AM, Lee Jones wrote: > A couple of headers make no attempt to document their associated function > parameters. Others looks as if they are suffering with a little bitrot. > > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/fcoe/fcoe.c:654: warning: Function parameter or member 'lport' not described in 'fcoe_netdev_features_change' > drivers/scsi/fcoe/fcoe.c:654: warning: Function parameter or member 'netdev' not described in 'fcoe_netdev_features_change' > drivers/scsi/fcoe/fcoe.c:2039: warning: Function parameter or member 'ctlr_dev' not described in 'fcoe_ctlr_mode' > drivers/scsi/fcoe/fcoe.c:2039: warning: Excess function parameter 'cdev' description in 'fcoe_ctlr_mode' > drivers/scsi/fcoe/fcoe.c:2144: warning: Function parameter or member 'fcoe' not described in 'fcoe_dcb_create' > drivers/scsi/fcoe/fcoe.c:2144: warning: Excess function parameter 'netdev' description in 'fcoe_dcb_create' > drivers/scsi/fcoe/fcoe.c:2144: warning: Excess function parameter 'port' description in 'fcoe_dcb_create' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'lport' not described in 'fcoe_elsct_send' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'did' not described in 'fcoe_elsct_send' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'fp' not described in 'fcoe_elsct_send' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'op' not described in 'fcoe_elsct_send' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'resp' not described in 'fcoe_elsct_send' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'arg' not described in 'fcoe_elsct_send' > drivers/scsi/fcoe/fcoe.c:2627: warning: Function parameter or member 'timeout' not described in 'fcoe_elsct_send' > > Cc: Hannes Reinecke > Signed-off-by: Lee Jones > --- > drivers/scsi/fcoe/fcoe.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c > index cb41d166e0c0f..0f9274960dc6b 100644 > --- a/drivers/scsi/fcoe/fcoe.c > +++ b/drivers/scsi/fcoe/fcoe.c > @@ -645,7 +645,7 @@ static int fcoe_lport_config(struct fc_lport *lport) > return 0; > } > > -/** > +/* > * fcoe_netdev_features_change - Updates the lport's offload flags based > * on the LLD netdev's FCoE feature flags > */ > @@ -2029,7 +2029,7 @@ static int fcoe_ctlr_enabled(struct fcoe_ctlr_device *cdev) > > /** > * fcoe_ctlr_mode() - Switch FIP mode > - * @cdev: The FCoE Controller that is being modified > + * @ctlr_dev: The FCoE Controller that is being modified > * > * When the FIP mode has been changed we need to update > * the multicast addresses to ensure we get the correct > @@ -2136,9 +2136,7 @@ static bool fcoe_match(struct net_device *netdev) > > /** > * fcoe_dcb_create() - Initialize DCB attributes and hooks > - * @netdev: The net_device object of the L2 link that should be queried > - * @port: The fcoe_port to bind FCoE APP priority with > - * @ > + * @fcoe: The new FCoE interface > */ > static void fcoe_dcb_create(struct fcoe_interface *fcoe) > { > @@ -2609,7 +2607,7 @@ static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) > fc_lport_logo_resp(seq, fp, lport); > } > > -/** > +/* > * fcoe_elsct_send - FCoE specific ELS handler > * > * This does special case handling of FIP encapsualted ELS exchanges for FCoE, > I'd rather convert this and the fcoe_netdev_features_change to proper kerneldocs: diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index cb41d166e0c0..151fe4c53b07 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -646,8 +646,12 @@ static int fcoe_lport_config(struct fc_lport *lport) } /** - * fcoe_netdev_features_change - Updates the lport's offload flags based - * on the LLD netdev's FCoE feature flags + * fcoe_netdev_features_change - Updates the lport's offload flags + * @lport: The local port that is associated with the net device + * @netdev: The associated net device + * + * Update the @lport offload flags based on the FCoE feature flags + * from the LLD @netdev. */ static void fcoe_netdev_features_change(struct fc_lport *lport, struct net_device *netdev) @@ -2611,6 +2615,13 @@ static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) /** * fcoe_elsct_send - FCoE specific ELS handler + * @lport: Local port + * @did: Destination ID + * @fp: FCoE frame + * @op: ELS operation + * @resp: Response callback + * @arg: Argument for the response callback + * @timeout: Timeout for the ELS response * * This does special case handling of FIP encapsualted ELS exchanges for FCoE, * using FCoE specific response handlers and passing the FIP controller as Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer