From patchwork Fri Nov 23 17:36:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 10696241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E2301926 for ; Fri, 23 Nov 2018 17:36:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D3B1284C9 for ; Fri, 23 Nov 2018 17:36:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0154A28555; Fri, 23 Nov 2018 17:36:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SUBJ_OBFU_PUNCT_MANY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F7B32858F for ; Fri, 23 Nov 2018 17:36:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410185AbeKXEVa (ORCPT ); Fri, 23 Nov 2018 23:21:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:45736 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732672AbeKXEV3 (ORCPT ); Fri, 23 Nov 2018 23:21:29 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D79A7AE78; Fri, 23 Nov 2018 17:36:16 +0000 (UTC) From: David Disseldorp To: target-devel@vger.kernel.org Cc: hare@suse.com, Mike Christie , martin.petersen@oracle.com, linux-scsi@vger.kernel.org Subject: [PATCH 0/3] target: drop unneeded pi_prot_format and get_fabric_name() Date: Fri, 23 Nov 2018 18:36:10 +0100 Message-Id: <20181123173613.4547-1-ddiss@suse.de> X-Mailer: git-send-email 2.13.7 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset removes unneeded se_dev_attrib.pi_prot_format and fabric_ops.get_fabric_name() struct members. Removal of the latter allowed for further cleanup due to the fact that all fabric modules except iscsi_target_mod provide matching strings for fabric_ops.name and fabric_ops.get_fabric_name() - use a new fabric_ops.fabric_alias member to handle the iscsi_target_mod special case. Cheers, David David Disseldorp (3): target: drop unused pi_prot_format attribute storage target: drop unnecessary get_fabric_name() accessor from fabric_ops target: replace fabric_ops.name with fabric_alias drivers/infiniband/ulp/srpt/ib_srpt.c | 8 +- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 8 +- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 16 +--- drivers/target/iscsi/iscsi_target_configfs.c | 9 +- drivers/target/loopback/tcm_loop.c | 8 +- drivers/target/sbp/sbp_target.c | 8 +- drivers/target/target_core_alua.c | 6 +- drivers/target/target_core_configfs.c | 47 ++++++----- drivers/target/target_core_device.c | 26 +++--- drivers/target/target_core_fabric_configfs.c | 2 +- drivers/target/target_core_pr.c | 88 ++++++++++---------- drivers/target/target_core_stat.c | 4 +- drivers/target/target_core_tmr.c | 4 +- drivers/target/target_core_tpg.c | 22 ++--- drivers/target/target_core_transport.c | 10 +-- drivers/target/target_core_ua.c | 4 +- drivers/target/target_core_xcopy.c | 7 +- drivers/target/tcm_fc/tfc_conf.c | 8 +- drivers/usb/gadget/function/f_tcm.c | 8 +- drivers/vhost/scsi.c | 8 +- drivers/xen/xen-scsiback.c | 8 +- include/target/target_core_base.h | 1 - include/target/target_core_fabric.h | 14 +++- 23 files changed, 134 insertions(+), 190 deletions(-)