From patchwork Wed Mar 3 14:46:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392706 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp54577jai; Thu, 4 Mar 2021 07:21:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxR4r5IIewtdrTfFQJuUTz2pmx9y9Pywf1BXBCZ+nNJRl+WTvCra4v15gWeT5AV4SZ8Fbxc X-Received: by 2002:a17:906:af84:: with SMTP id mj4mr4889002ejb.84.1614871276098; Thu, 04 Mar 2021 07:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614871276; cv=none; d=google.com; s=arc-20160816; b=qAaeE/Zm5l4OcEU4gCOC7tW8CSqnNCg+SWz5Rb9lAqQiWigqtckPS027WRRr76YTTZ Riw2wClbF8w5s8d1vi3ZytKFm/ggnzklNFwx9xCGnyWvs1CrKijI8qQPzT/w6jlnTBr2 wYnqugYJg79zzW15eW9Yt+m4Qfpkmm401JANtwpvc0Kfolo81Pk3oUWaOJx76V+CW/LF qlGTZ97ACmJR9HY+4aT+M2Tz3fwRFtkqwGU3XBlK0pVenSb7zAjfYXOblWsScoxoH1uG XoidFvPbR3TFMgcTc+jSHP2ob6IQgsCOs9SO5r/FFUu+aEZ3ezX7RgSErzIJ/g/xXer6 I02g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=U92/RQ3hpLZuYnPJtsOpX25Ju+xsfO8zWOU6k76xGHs=; b=L60i79Imnj/VO4+0qtQmlJ72nIVsOaj8j+rfsr8Sp8Cxm3klIWZEc0c+mjZd0A1nGO K/kSPeoYRi2fPPnd0tglvLd5MQ5thvzbk5MJ9GgApMkW+77bgFuUyquOm4TZycpCTRRI k2jhFbkKyiqHaC6WIOIYJNGVwUoQPAP7bwnNrkUod315tURWRysuqiZvCU3wKsEE2yau kRulPYqzrPIXuRh8Y7f4r0VxFtgn/GhMtfs6K7Cc0Ye7X6YmUdKVSyVJdoJH/36xmD+q clL31QNjEt2X54Ut6fefHCBBkwERos9lxVLFEcXBX1wApc++RkfXvFMelqB7bsjBNloy hfFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rNsskH/w"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 p20si17469389edu.558.2021.03.04.07.21.15 for ; Thu, 04 Mar 2021 07:21:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-scsi-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="rNsskH/w"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 S1355450AbhCDAct (ORCPT ); Wed, 3 Mar 2021 19:32:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234429AbhCCOw2 (ORCPT ); Wed, 3 Mar 2021 09:52:28 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8047AC0610D2 for ; Wed, 3 Mar 2021 06:47:45 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id w7so5393063wmb.5 for ; Wed, 03 Mar 2021 06:47:45 -0800 (PST) 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=U92/RQ3hpLZuYnPJtsOpX25Ju+xsfO8zWOU6k76xGHs=; b=rNsskH/w5bS8B3UXyXbYeb3x7TdttXqfSrFaKyJlnbBo1iMvOfaWCQkN4RiP4tsGty /7poK+nS0jVRPENWhBrjf0utc734Ad17uNRMG4/DmK3dNspWCkP/BFkegAQdcUG/LJmg cBCHzxDaohMBfzaR9MjbVuSF9T8ExP+jj22uuGWrg6VMUHMhvR9ExgZHk8XK2yeHlfEa /EVJ9pgupROEK05kfYBn67Z83PZFGEG52eJvDNc7bufAEFVgdnKIxR093iKcA1iOijPz AjGb3qxQh1oLKCevw2Duftgx+kDg1GePvYUqGHh9X2QDluwVFkkpN0xTYK71ex45kpSR QFrw== 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=U92/RQ3hpLZuYnPJtsOpX25Ju+xsfO8zWOU6k76xGHs=; b=H4o5vCAIVnQy6T59FpnvthatFVcZBIMqiRMJ4x4u7/ZstSn+iR+qblvuErMkEG0NKh gCRS+me21YjX71AxHzJl98H5Xc6K1172xkXlVgOd3DozfV8qdEnRGePOCsoJb0WoRrsc qi7L9MV1ZQCYa7M5RqGtwOQue3Myg7CIETljQgKfo7m3YojuIOn8YNqt1/2G4Jy7cEcA vGbs2sIs+bWoCiT3Ac+ehjaCn/ZfTUd1kZ0zOdwsXSDC10YkB36D1Ga1+L7hjMjo0aUp CDNoju7MvbsO7rxkRYJWamcJu1nWg4hISf47iinknt5F6uqs57kA3q0UBMB4hd1Sx0I7 HfmQ== X-Gm-Message-State: AOAM532J9VGwOptBhmEPbIU7uDHJBCUAqeBJCDlN0idf8/aCfrrs/3NK wFKJXkwbeCxHccR0jBy53wm8dQtFF0W0EA== X-Received: by 2002:a05:600c:1550:: with SMTP id f16mr5448736wmg.97.1614782864204; Wed, 03 Mar 2021 06:47:44 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id a14sm36567233wrg.84.2021.03.03.06.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:47:43 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: [PATCH 26/30] scsi: libfc: fc_lport: Fix some possible copy/paste issues Date: Wed, 3 Mar 2021 14:46:27 +0000 Message-Id: <20210303144631.3175331-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303144631.3175331-1-lee.jones@linaro.org> References: <20210303144631.3175331-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/libfc/fc_lport.c:710: warning: expecting prototype for fc_rport_enter_ready(). Prototype was for fc_lport_enter_ready() instead drivers/scsi/libfc/fc_lport.c:759: warning: expecting prototype for fc_lport_set_port_id(). Prototype was for fc_lport_set_local_id() instead drivers/scsi/libfc/fc_lport.c:1400: warning: expecting prototype for fc_rport_enter_dns(). Prototype was for fc_lport_enter_dns() instead drivers/scsi/libfc/fc_lport.c:1516: warning: expecting prototype for fc_rport_enter_fdmi(). Prototype was for fc_lport_enter_fdmi() instead drivers/scsi/libfc/fc_lport.c:1647: warning: expecting prototype for fc_rport_enter_logo(). Prototype was for fc_lport_enter_logo() instead drivers/scsi/libfc/fc_lport.c:1789: warning: expecting prototype for fc_rport_enter_flogi(). Prototype was for fc_lport_enter_flogi() instead Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/libfc/fc_lport.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.27.0 diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index 22826544da7e7..78bd317f0553b 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c @@ -703,7 +703,7 @@ static void fc_lport_disc_callback(struct fc_lport *lport, } /** - * fc_rport_enter_ready() - Enter the ready state and start discovery + * fc_lport_enter_ready() - Enter the ready state and start discovery * @lport: The local port that is ready */ static void fc_lport_enter_ready(struct fc_lport *lport) @@ -747,7 +747,7 @@ static void fc_lport_set_port_id(struct fc_lport *lport, u32 port_id, } /** - * fc_lport_set_port_id() - set the local port Port ID for point-to-multipoint + * fc_lport_set_local_id() - set the local port Port ID for point-to-multipoint * @lport: The local port which will have its Port ID set. * @port_id: The new port ID. * @@ -1393,7 +1393,7 @@ static struct fc_rport_operations fc_lport_rport_ops = { }; /** - * fc_rport_enter_dns() - Create a fc_rport for the name server + * fc_lport_enter_dns() - Create a fc_rport for the name server * @lport: The local port requesting a remote port for the name server */ static void fc_lport_enter_dns(struct fc_lport *lport) @@ -1509,7 +1509,7 @@ static void fc_lport_enter_ms(struct fc_lport *lport, enum fc_lport_state state) } /** - * fc_rport_enter_fdmi() - Create a fc_rport for the management server + * fc_lport_enter_fdmi() - Create a fc_rport for the management server * @lport: The local port requesting a remote port for the management server */ static void fc_lport_enter_fdmi(struct fc_lport *lport) @@ -1640,7 +1640,7 @@ void fc_lport_logo_resp(struct fc_seq *sp, struct fc_frame *fp, EXPORT_SYMBOL(fc_lport_logo_resp); /** - * fc_rport_enter_logo() - Logout of the fabric + * fc_lport_enter_logo() - Logout of the fabric * @lport: The local port to be logged out */ static void fc_lport_enter_logo(struct fc_lport *lport) @@ -1782,7 +1782,7 @@ void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, EXPORT_SYMBOL(fc_lport_flogi_resp); /** - * fc_rport_enter_flogi() - Send a FLOGI request to the fabric manager + * fc_lport_enter_flogi() - Send a FLOGI request to the fabric manager * @lport: Fibre Channel local port to be logged in to the fabric */ static void fc_lport_enter_flogi(struct fc_lport *lport)