From patchwork Fri Mar 12 09:47:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398519 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1050514jai; Fri, 12 Mar 2021 01:49:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxymvZ4KpWNHVDy078BaIRFa99rNAKd4vbZ3k+MfOMvQ3GsGuzAqkTRZHJGAx1GVL+blklb X-Received: by 2002:a17:906:d114:: with SMTP id b20mr6506677ejz.449.1615542559528; Fri, 12 Mar 2021 01:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615542559; cv=none; d=google.com; s=arc-20160816; b=wvliGcwaKYoevRKEtSekJ5Mf2byhRjRYMpCistN/fQwMSoX8TcFEWt07v7zs7qbO84 QX1S5ytdCVOw4l2jWCIaqEVRrvqBjiqVIdTOC1VfZym0wq2PJeHTrLmF2/Qrm1a5Y1Js aMVqrkwksA2ydJ0shwYuwlK15KzhviysqVsYnL0TXR/ivU11lOYaX2Nncr9YN26IrjK4 xaOQ+GPy/KwIi3Qde/udnqN4vkUMftL5dL5yVbnVyJw1mejgTD5rRMx7DSVt3a8B988a ioI3VYsF2sDgC5XLCO58ygDJbFPoFdv+S5w5l81bXCbwgHl6FbzskldmjJDXSy8GXlT0 oWpw== 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=8It0TlKiH23HHYeagj0RrwZW3jVqJUmFhLQQRIEz+M0=; b=g93iT52kdDtkSU8A/076VCHHeRpCxxvQp0rb8RgN+kE4ppWQgyDw311tY5k0qCZp63 v+kUjbhw4D5EICyb3WcASHL/nOcVF4Z3gGTF7qPwNvh91RmhpxdB/Cn0Ok3WGDkdYCuy iDT6vgGb6lY3T8BAEVLFBxlQ2BeYStfU+fPuO4J9APXvRABvf7PYooyDJvTlHD6PolX3 oVBslSle+pZS6FkAuLVDZx6nnSLv52l5mjCwf/oeTBht78XGkyvy9hwExLZXf+kfVskp LKaeYeb2iqZIlzp+PI4wxMM98eO5tOY37dzr5TPK/XsKZKOXdQVG87iAHiMXAKh4Nz3J JLOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2w2lAc9; 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 cf6si3710544ejb.272.2021.03.12.01.49.19 for ; Fri, 12 Mar 2021 01:49:19 -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=I2w2lAc9; 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 S233181AbhCLJsg (ORCPT ); Fri, 12 Mar 2021 04:48:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233065AbhCLJsF (ORCPT ); Fri, 12 Mar 2021 04:48:05 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B6A0C061574 for ; Fri, 12 Mar 2021 01:47:54 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id e18so1402442wrt.6 for ; Fri, 12 Mar 2021 01:47:54 -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=8It0TlKiH23HHYeagj0RrwZW3jVqJUmFhLQQRIEz+M0=; b=I2w2lAc9bV5OeVHfiVDOYDJeo247UNTvywDVv3GJIUIDJMDZczSbdNk4298es766WF lBhQBQFDOahEKvmm3ts4zwwEfyhVQx4xObNrJg/FBlVmcsqWMBy78hUI9xXMQNgdhzEM nCzFKMSZQCHefkEtviqW1JBDMOxlmF8rUhq2oAw0yWEPgVPTN2N/ygV2sLPGgsXEtHR8 Qjcwl4zibINwl4GLyI7p0o9/7cVrhHYuD5fiNxHOXqDFHQ9GZgw4I/y9WhwKa40+8gUu Axf0pWLp9927KbAM9plRNAzFz3hef3waPSm6T0qjdoG1lhl6xc031nSHtC/0FrIeQPYg kzLg== 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=8It0TlKiH23HHYeagj0RrwZW3jVqJUmFhLQQRIEz+M0=; b=nuXqIE/98osr+YSmR02B8qJu0nA+MyvHp+2q1KfCYXOvkKB3LGa/kQXMmaKhVOhVTy vJPzrjAYF/XxdaeyJsDyNfrR2Anqn0zaUlKb5dmt44Xi2balwRVB7Xh5PUKl9pBaMPCx R9xx3jVZ4K29W7rgzBO/XOvgl++UdyNO5ooINf6W3Ih2B/1bSRgYH3py35J+M4m3RjWE 1Fqgb8EI9RC4H5B4cNlQgNFL9qL7aOcwqxUC7LdhMNl79JuNAM8WFJWzgfNGMT3tEeuh CtD5DUFO0V4zAmZaSF63KU38rq7MkQrN0U+lO9I9B2xve/YlEI/Ce484QLO9PrIZwtV8 rZzQ== X-Gm-Message-State: AOAM533ApLCx/krmpHFAa6PsMmhe51Rv9QEgbmmj+Hy/jKcYAv20+E3t +AfSEiiz5iBcRrnxGGKN1gcwXg== X-Received: by 2002:a05:6000:192:: with SMTP id p18mr12928007wrx.403.1615542472867; Fri, 12 Mar 2021 01:47:52 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id f7sm1539536wmq.11.2021.03.12.01.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 01:47:52 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: [PATCH 04/30] scsi: lpfc: lpfc_attr: Fix a bunch of misnamed functions Date: Fri, 12 Mar 2021 09:47:12 +0000 Message-Id: <20210312094738.2207817-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312094738.2207817-1-lee.jones@linaro.org> References: <20210312094738.2207817-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/lpfc/lpfc_attr.c:880: warning: expecting prototype for lpfc_state_show(). Prototype was for lpfc_link_state_show() instead drivers/scsi/lpfc/lpfc_attr.c:3834: warning: expecting prototype for lpfc_tgt_queue_depth_store(). Prototype was for lpfc_tgt_queue_depth_set() instead drivers/scsi/lpfc/lpfc_attr.c:4027: warning: expecting prototype for lpfc_topology_set(). Prototype was for lpfc_topology_store() instead drivers/scsi/lpfc/lpfc_attr.c:4481: warning: expecting prototype for lpfc_link_speed_set(). Prototype was for lpfc_link_speed_store() instead drivers/scsi/lpfc/lpfc_attr.c:4879: warning: expecting prototype for lpfc_request_firmware_store(). Prototype was for lpfc_request_firmware_upgrade_store() instead drivers/scsi/lpfc/lpfc_attr.c:5235: warning: expecting prototype for lpfc_state_show(). Prototype was for lpfc_fcp_cpu_map_show() instead Cc: James Smart Cc: Dick Kennedy Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/lpfc/lpfc_attr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.27.0 diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 98594d6bc26b9..8b4c42016865f 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -864,7 +864,7 @@ lpfc_option_rom_version_show(struct device *dev, struct device_attribute *attr, } /** - * lpfc_state_show - Return the link state of the port + * lpfc_link_state_show - Return the link state of the port * @dev: class converted to a Scsi_host structure. * @attr: device attribute, not used. * @buf: on return contains text describing the state of the link. @@ -3819,7 +3819,7 @@ lpfc_vport_param_init(tgt_queue_depth, LPFC_MAX_TGT_QDEPTH, LPFC_MIN_TGT_QDEPTH, LPFC_MAX_TGT_QDEPTH); /** - * lpfc_tgt_queue_depth_store: Sets an attribute value. + * lpfc_tgt_queue_depth_set: Sets an attribute value. * @vport: lpfc vport structure pointer. * @val: integer attribute value. * @@ -4004,7 +4004,7 @@ LPFC_ATTR(topology, 0, 0, 6, "Select Fibre Channel topology"); /** - * lpfc_topology_set - Set the adapters topology field + * lpfc_topology_store - Set the adapters topology field * @dev: class device that is converted into a scsi_host. * @attr:device attribute, not used. * @buf: buffer for passing information. @@ -4457,7 +4457,7 @@ static struct bin_attribute sysfs_drvr_stat_data_attr = { # Value range is [0,16]. Default value is 0. */ /** - * lpfc_link_speed_set - Set the adapters link speed + * lpfc_link_speed_store - Set the adapters link speed * @dev: Pointer to class device. * @attr: Unused. * @buf: Data buffer. @@ -4858,7 +4858,7 @@ lpfc_param_show(sriov_nr_virtfn) static DEVICE_ATTR_RW(lpfc_sriov_nr_virtfn); /** - * lpfc_request_firmware_store - Request for Linux generic firmware upgrade + * lpfc_request_firmware_upgrade_store - Request for Linux generic firmware upgrade * * @dev: class device that is converted into a Scsi_host. * @attr: device attribute, not used. @@ -5222,7 +5222,7 @@ lpfc_cq_max_proc_limit_init(struct lpfc_hba *phba, int val) static DEVICE_ATTR_RW(lpfc_cq_max_proc_limit); /** - * lpfc_state_show - Display current driver CPU affinity + * lpfc_fcp_cpu_map_show - Display current driver CPU affinity * @dev: class converted to a Scsi_host structure. * @attr: device attribute, not used. * @buf: on return contains text describing the state of the link.