Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp535958rwb; Thu, 22 Sep 2022 03:12:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5bclbxG8fJ778lynEgfS5O5BPjQzh1iwC6NKfS5o1STjqOVxJcvGqFMSWotFXHj+OMCUtJ X-Received: by 2002:a05:6a00:24d4:b0:544:abd7:c944 with SMTP id d20-20020a056a0024d400b00544abd7c944mr2976898pfv.44.1663841539261; Thu, 22 Sep 2022 03:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663841539; cv=none; d=google.com; s=arc-20160816; b=E5We1qLVx7EH4cgX1zDSdmei1PRW5/HYlYlMDxIeHX+UlLjPbWm+gmA4N9pB2977lx kMBkDaevmbElV10vsfv4RaXXhRfDalcn75gM5nD0yeH4jHy6oowJK/cn56On7bdrlB6u R1WTW7B77vIEG2ffREOF4JnDy27v6vInSYJqRHWlwOdIlfUa0FDboxZE14zvFaCfUpeQ DT9B6cc7JZkhHpMb5aVAlinOTEUqkhqyrMABHaJFGldccQgH40z9vLNXC/XDNjuNQ+Ob 0jiCu2ljhfSYOlW4dEY2llxDjgdxNfycJOF89qTsH3Hj0l92tsFGrEOyi6MgvU2czCTl WNmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=l2vineQgB7Bq0i2QEbLx5iz/RUNd7b7DNabwtVFs21Q=; b=ePKyeEPgILmc126zz0sitAOBzEcPTKfLZnVAIDQCWQQMpXNeK+jrAjtkL/CHhTX7Nd +IE2OWLYtA3VpHB1G7amll3qFUI2lBrOQBMBzhph4tD+WMlwsX9fA/413od0TYPHnpUL nalfdkKPVt9EPjuTRBa7Wq82dTyfKl5+ZCVNtUR08RGd4DqT3AcaYAUX+BI/RSwZ7Mng Ymzzshh6SFxV07Xx2GB65HcavOj7MLcbM1YtkqoSHglM6wdEQhuh0QBpICbhfTV3rcUf f3ih/+ewB9/BHnH/Cy/pfLquudFsexcyQ5FHFK76NXUhJPdGLEGxkUY38SYGhHMnZuIZ Cdaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a056a00178c00b00535fd435cf6si5893139pfg.208.2022.09.22.03.12.07; Thu, 22 Sep 2022 03:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbiIVJy6 (ORCPT + 99 others); Thu, 22 Sep 2022 05:54:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiIVJx6 (ORCPT ); Thu, 22 Sep 2022 05:53:58 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1261ED589D; Thu, 22 Sep 2022 02:53:44 -0700 (PDT) Received: from fraeml712-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MY9Y723qPz67PcV; Thu, 22 Sep 2022 17:51:55 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml712-chm.china.huawei.com (10.206.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 11:53:42 +0200 Received: from localhost.localdomain (10.69.192.58) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 10:53:39 +0100 From: John Garry To: , , , CC: , , , , John Garry Subject: [PATCH v4 7/7] scsi: libsas: Make sas_{alloc, alloc_slow, free}_task() private Date: Thu, 22 Sep 2022 17:46:58 +0800 Message-ID: <1663840018-50161-8-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1663840018-50161-1-git-send-email-john.garry@huawei.com> References: <1663840018-50161-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have no users outside libsas any longer, so make sas_alloc_task(), sas_alloc_slow_task(), and sas_free_task() private. Signed-off-by: John Garry Tested-by: Damien Le Moal --- drivers/scsi/libsas/sas_init.c | 3 --- drivers/scsi/libsas/sas_internal.h | 4 ++++ include/scsi/libsas.h | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index e4f77072a58d..f2c05ebeb72f 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c @@ -35,7 +35,6 @@ struct sas_task *sas_alloc_task(gfp_t flags) return task; } -EXPORT_SYMBOL_GPL(sas_alloc_task); struct sas_task *sas_alloc_slow_task(gfp_t flags) { @@ -56,7 +55,6 @@ struct sas_task *sas_alloc_slow_task(gfp_t flags) return task; } -EXPORT_SYMBOL_GPL(sas_alloc_slow_task); void sas_free_task(struct sas_task *task) { @@ -65,7 +63,6 @@ void sas_free_task(struct sas_task *task) kmem_cache_free(sas_task_cache, task); } } -EXPORT_SYMBOL_GPL(sas_free_task); /*------------ SAS addr hash -----------*/ void sas_hash_addr(u8 *hashed, const u8 *sas_addr) diff --git a/drivers/scsi/libsas/sas_internal.h b/drivers/scsi/libsas/sas_internal.h index 8d0ad3abc7b5..b54bcf3c9a9d 100644 --- a/drivers/scsi/libsas/sas_internal.h +++ b/drivers/scsi/libsas/sas_internal.h @@ -52,6 +52,10 @@ void sas_unregister_phys(struct sas_ha_struct *sas_ha); struct asd_sas_event *sas_alloc_event(struct asd_sas_phy *phy, gfp_t gfp_flags); void sas_free_event(struct asd_sas_event *event); +struct sas_task *sas_alloc_task(gfp_t flags); +struct sas_task *sas_alloc_slow_task(gfp_t flags); +void sas_free_task(struct sas_task *task); + int sas_register_ports(struct sas_ha_struct *sas_ha); void sas_unregister_ports(struct sas_ha_struct *sas_ha); diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 2dbead74a2af..f86b56bf7833 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -639,10 +639,6 @@ struct sas_task_slow { #define SAS_TASK_STATE_ABORTED 4 #define SAS_TASK_NEED_DEV_RESET 8 -extern struct sas_task *sas_alloc_task(gfp_t flags); -extern struct sas_task *sas_alloc_slow_task(gfp_t flags); -extern void sas_free_task(struct sas_task *task); - static inline bool sas_is_internal_abort(struct sas_task *task) { return task->task_proto == SAS_PROTOCOL_INTERNAL_ABORT; -- 2.35.3