From patchwork Fri Sep 6 12:55:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 173234 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp600715oce; Fri, 6 Sep 2019 05:58:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQKDLqxVD3xYHeWjFWxaxoDsQkZD1Moybe0dRJlypjKz20lXkweIW5aouOfKkC1KVla6ho X-Received: by 2002:a63:534d:: with SMTP id t13mr7858878pgl.313.1567774734344; Fri, 06 Sep 2019 05:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567774734; cv=none; d=google.com; s=arc-20160816; b=hfdSXiRF+YVlC5a12HPCxdTm5lntIo89b8DuwPAe5FnnebFRaDlG8hSJNi6gX8CZTc IKp1sXFyNGTuGp2wd7uw1AzKfLTm3G/fyv+PxDRYMxlcoy3WLNj+qY+4C9DndvTWgAnr 7rRx7sHZCo9kiV4WlREe6IfzNhopa5z39NOl3PwaF0p+7jnr6/+K1esv8ghREk2xQ/jI gqfEc2QXENezl52GPQAlLnXabRLxGdz5ml3paeZhP1oi7/RabW99hiaXeFaxELH/+kdU uk5FvjiTT7pJa96pf02+Qj3mgeDrTxR5zoHB5VF4xhZQS1X0mLf8cdiBP5uOFj9PJpjC aJBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=c3OrEwQMZczp2d/YxQjWedmgIfHUMmPuGn1C3AWozKw=; b=T1rVPz3GCDnn2B89XjJL4IvPQAZYJy6YHJi+8PG8lvLQBNHv4WHpCGFFCBTmf/zI81 shfgg2ypo7LLXKnlf8k63yEGBg75QkhRzAJzXz0U84UnQGOTF1pyFdUsJbPpikGshq3F W0s/o7wF256gvlV8EjZnTYlkG6GAYSotUs1pbHKfHAzf6YpbFYW7EtTIvr44xDUgTGbT 43onSw00AeCFp4U1fMwHLlXaqf5qD66/8L2uJdnL99ebP1IpTK+yff943yRO35Ug4dQY 5GAscAjDQaDk7H4aNcPU1jHeluA4Q3/voaFprq2W9bQE16ZI+SdHZ6Bz87FttmwOSVJK VWhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si1546836pli.317.2019.09.06.05.58.53; Fri, 06 Sep 2019 05:58:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405018AbfIFM6w (ORCPT + 28 others); Fri, 6 Sep 2019 08:58:52 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7139 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404923AbfIFM6R (ORCPT ); Fri, 6 Sep 2019 08:58:17 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EC04DF22272FF64F6E53; Fri, 6 Sep 2019 20:58:10 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Sep 2019 20:58:03 +0800 From: John Garry To: , CC: , , , Luo Jiaxing , "John Garry" Subject: [PATCH 08/13] scsi: hisi_sas: Remove hisi_sas_hw.slot_complete Date: Fri, 6 Sep 2019 20:55:32 +0800 Message-ID: <1567774537-20003-9-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1567774537-20003-1-git-send-email-john.garry@huawei.com> References: <1567774537-20003-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luo Jiaxing We never call hisi_sas_hw.slot_complete, so remove it. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 -- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 1 - drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 1 - drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 - 4 files changed, 5 deletions(-) -- 2.17.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index a72d06d973ff..a6b53d29a8a1 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -289,8 +289,6 @@ struct hisi_sas_hw { void (*prep_abort)(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot, int device_id, int abort_flag, int tag_to_abort); - int (*slot_complete)(struct hisi_hba *hisi_hba, - struct hisi_sas_slot *slot); void (*phys_init)(struct hisi_hba *hisi_hba); void (*phy_start)(struct hisi_hba *hisi_hba, int phy_no); void (*phy_disable)(struct hisi_hba *hisi_hba, int phy_no); diff --git a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c index 3a584feca843..b861a0f14c9d 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c @@ -1782,7 +1782,6 @@ static const struct hisi_sas_hw hisi_sas_v1_hw = { .prep_smp = prep_smp_v1_hw, .prep_ssp = prep_ssp_v1_hw, .start_delivery = start_delivery_v1_hw, - .slot_complete = slot_complete_v1_hw, .phys_init = phys_init_v1_hw, .phy_start = start_phy_v1_hw, .phy_disable = disable_phy_v1_hw, diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 9d316f28c74c..b01ccb38b00a 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c @@ -3561,7 +3561,6 @@ static const struct hisi_sas_hw hisi_sas_v2_hw = { .prep_stp = prep_ata_v2_hw, .prep_abort = prep_abort_v2_hw, .start_delivery = start_delivery_v2_hw, - .slot_complete = slot_complete_v2_hw, .phys_init = phys_init_v2_hw, .phy_start = start_phy_v2_hw, .phy_disable = disable_phy_v2_hw, diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index cd901213a59b..0a159df87d7b 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -2961,7 +2961,6 @@ static const struct hisi_sas_hw hisi_sas_v3_hw = { .prep_stp = prep_ata_v3_hw, .prep_abort = prep_abort_v3_hw, .start_delivery = start_delivery_v3_hw, - .slot_complete = slot_complete_v3_hw, .phys_init = phys_init_v3_hw, .phy_start = start_phy_v3_hw, .phy_disable = disable_phy_v3_hw,