From patchwork Tue Sep 12 07:47:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13380954 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A1DECA0EC3 for ; Tue, 12 Sep 2023 07:47:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231774AbjILHr0 (ORCPT ); Tue, 12 Sep 2023 03:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjILHrY (ORCPT ); Tue, 12 Sep 2023 03:47:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45F8410C2 for ; Tue, 12 Sep 2023 00:47:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2846FC433C9; Tue, 12 Sep 2023 07:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694504839; bh=2JSdq+fjLhNBHeZKKH75zQHUgdFywdDaWh82cXZlNg0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=k0+pXaB2zbRB9iCrWAzFLlTpGs75E3UcXYwqWhbr6M4gtEXQhdZu0N0wZ3G29p3QO XBVOT6aF3U7g4V2WIXscQ3VbMjFqF3ciM5TQNqu+RGnrNJSddIBhicUauOJA4Q7U8s cVGgnd4TcgKDYCX1KoDCjyCvG7lcGF0whY2gvwCckfOUfuZfpAl8W1pOoFg1+vg8My 4kgwBBd9QYBUSmbzQbiO47+t2L7buf9qeqNNHsdiray1jtjmnkefggIkbyAnGmRnoD /9OYPfpx3Ob0Y+s9TVL2zaOkRyaaUq9bEVO2aIl0X5698iAkKntLAOHak0m5hYM5Q6 gt0KPxX9M0mkw== From: Damien Le Moal To: linux-scsi@vger.kernel.org, "Martin K . Petersen" , John Garry Subject: [PATCH 1/3] scsi: libsas: Move local functions declarations to sas_internal.h Date: Tue, 12 Sep 2023 16:47:13 +0900 Message-ID: <20230912074715.424062-2-dlemoal@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230912074715.424062-1-dlemoal@kernel.org> References: <20230912074715.424062-1-dlemoal@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Move the declarations of functions used only within libsas from include/scsi/libsas.h to drivers/scsi/libsas/sas_internal.h Signed-off-by: Damien Le Moal Reviewed-by: John Garry --- drivers/scsi/libsas/sas_internal.h | 11 +++++++++++ include/scsi/libsas.h | 12 ------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/libsas/sas_internal.h b/drivers/scsi/libsas/sas_internal.h index a6dc7dc07fce..e597c1620205 100644 --- a/drivers/scsi/libsas/sas_internal.h +++ b/drivers/scsi/libsas/sas_internal.h @@ -39,6 +39,17 @@ struct sas_phy_data { struct sas_work enable_work; }; +void sas_hash_addr(u8 *hashed, const u8 *sas_addr); + +int sas_discover_root_expander(struct domain_device *dev); + +int sas_ex_revalidate_domain(struct domain_device *dev); +void sas_unregister_domain_devices(struct asd_sas_port *port, int gone); +void sas_init_disc(struct sas_discovery *disc, struct asd_sas_port *port); +void sas_discover_event(struct asd_sas_port *, enum discover_event ev); + +void sas_unregister_dev(struct asd_sas_port *port, struct domain_device *dev); + void sas_scsi_recover_host(struct Scsi_Host *shost); int sas_register_phys(struct sas_ha_struct *sas_ha); diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 8a43534eea5c..87f194925b3c 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -404,8 +404,6 @@ cmd_to_domain_dev(struct scsi_cmnd *cmd) return sdev_to_domain_dev(cmd->device); } -void sas_hash_addr(u8 *hashed, const u8 *sas_addr); - /* Before calling a notify event, LLDD should use this function * when the link is severed (possibly from its tasklet). * The idea is that the Class only reads those, while the LLDD, @@ -699,18 +697,8 @@ extern struct scsi_transport_template * sas_domain_attach_transport(struct sas_domain_function_template *); extern struct device_attribute dev_attr_phy_event_threshold; -int sas_discover_root_expander(struct domain_device *); - -int sas_ex_revalidate_domain(struct domain_device *); - -void sas_unregister_domain_devices(struct asd_sas_port *port, int gone); -void sas_init_disc(struct sas_discovery *disc, struct asd_sas_port *); -void sas_discover_event(struct asd_sas_port *, enum discover_event ev); - int sas_discover_end_dev(struct domain_device *); -void sas_unregister_dev(struct asd_sas_port *port, struct domain_device *); - void sas_init_dev(struct domain_device *); void sas_task_abort(struct sas_task *);