Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp837963pxb; Fri, 13 Aug 2021 07:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsRp1PjUsDejiHibT5VIiQj5vxoQ4uPjmVGa1JcVd4bl347y5KQPZT1PisPOjbUfxBoyDb X-Received: by 2002:a92:d18c:: with SMTP id z12mr2030167ilz.295.1628864817045; Fri, 13 Aug 2021 07:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628864817; cv=none; d=google.com; s=arc-20160816; b=JGgwCGs/Z7SB9ssmhnYPQlGVFnEEpOFARIEnniW1wdGgYIEf0pEpq3Oqx0i7GcL4Fe KpkR253qFKlrkYG7J2iltlditEtD7BQtkKjlTbYzjQAA95SMaunvExaQs3fdiS/wkN/O VVAUGQQ6DPVMEWWCtLyUj3rzK55EKq9gm36UqYLzFiQ4NH83C4SIqGGAQEOQ3DsN0/wP 29WuwbX/OI/hdLVth652SY0xdWvcPqmk8FGzgXok63Vixb0lHQDTxxlynsqNC816MRUK 8SmvvtvYQpX2OYbBeXSmB3lRMJLttkWqGDgP1z/xWJtNxqZb3HwpDzrE1w5dCb2ZsSGw R8sA== 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=ouYD2uzqHwhOw9HjkxPBeYRFEny971PJHszhpTZS0YA=; b=EcBLGuRJm6doqlqMPggk73aS+4cUb/LS//0NIH/RpWpKprpyhrWX96aprjRHgMBpPg GCP67V5n1s2IWOa32zJHIvxNWlsuJPBJAfpcZLS329ZDc626vmgbI2wQdYn6/9z56yYa 1Yqe2uS1XlfFQg9NMwtgcHWuyS5OvUe6VIvnE1QelLrZVSLbsBbxYBpGwczsm2mkvDN2 uOc6c/J+mQE2p7wBZGWHjcor9CnUsJnEDcrGeDmI0zewOZopTztA62HOZRuRUJbpkxnG UMIm2eP78vZi0Al1BaaKLTWuMAdSKMDtYLsnzYzOHACykQqffSTqwHbob+oyyRDgot34 zStA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si1478418ioe.34.2021.08.13.07.26.45; Fri, 13 Aug 2021 07:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240775AbhHMNyo (ORCPT + 99 others); Fri, 13 Aug 2021 09:54:44 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3649 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240762AbhHMNyj (ORCPT ); Fri, 13 Aug 2021 09:54:39 -0400 Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GmQ4m5BBYz6D8Vt; Fri, 13 Aug 2021 21:53:28 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Fri, 13 Aug 2021 15:54:11 +0200 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 13 Aug 2021 14:54:08 +0100 From: John Garry To: , , , , CC: , , , , , John Garry Subject: [PATCH 3/3] scsi: Remove scsi_cmnd.tag Date: Fri, 13 Aug 2021 21:49:13 +0800 Message-ID: <1628862553-179450-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1628862553-179450-1-git-send-email-john.garry@huawei.com> References: <1628862553-179450-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: dggems706-chm.china.huawei.com (10.3.19.183) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is never read, so get rid of it. Signed-off-by: John Garry --- drivers/scsi/scsi_lib.c | 1 - include/scsi/scsi_cmnd.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 9ba1aa7530a9..572673873ddf 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1540,7 +1540,6 @@ static blk_status_t scsi_prepare_cmd(struct request *req) scsi_init_command(sdev, cmd); - cmd->tag = req->tag; cmd->prot_op = SCSI_PROT_NORMAL; if (blk_rq_bytes(req)) cmd->sc_data_direction = rq_dma_dir(req); diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 6c5a1c1c6b1e..eaf04c9a1dfc 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h @@ -139,7 +139,6 @@ struct scsi_cmnd { int flags; /* Command flags */ unsigned long state; /* Command completion state */ - unsigned char tag; /* SCSI-II queued command tag */ unsigned int extra_len; /* length of alignment and padding */ }; -- 2.26.2