Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4101834imm; Mon, 6 Aug 2018 17:02:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcdYp51f/ymnAsXYSpoP0pfXZXLVNjTHAZAwaoRkzFVnh6QznVzQrMIL3Grj+cNwKz8ZNOF X-Received: by 2002:a63:28c1:: with SMTP id o184-v6mr16197583pgo.225.1533600142215; Mon, 06 Aug 2018 17:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533600142; cv=none; d=google.com; s=arc-20160816; b=mUG5TmI5/bJuMrO+oCBxtl+pBKWmGMLGM/vc1omidqGc/6gPfxZIINX7y242kccX5v uYkQGwC37pf+WgTdyRAW5RB9+g2geLdebnafE3luSFVP1ZJS9gfsaRO6Q/HQaYPvkbrP arx6fp1Z7DFpido4Q9xAYG/0guok9f9ZfolLEfyNBOaPMciIX7rDSr4w9QBNGD3qH7r0 1t5GbYKDTdDCuOv6zXYDdxuaj/ir2TlPJ0i17wSAuYuARZLpq9DzdaLRVTafKX9pTlBG IKVLA9PcELnX7jDNavPro6dXog3O93qVXYfZ8C6m+Ze6MwhGxMnlvMhofciIuEbSMSzQ XV4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=OepMvDgitVkbslDlVfLAx+7xirDCIhVDWmMiq8OuIks=; b=Tzjwd0OtlTIYx1asA+EyrQbqHVi3IQ/txRyYNZxMjw9zez+nmTXVSl1BdICCsBHMmG Z4NjzhB0CWEN8tyklNSvYsL1Pcv0PtERBt6XvVzR62oteinpLFfD9sXg8T9lDQ1LZEDH v9CPomnh5W6OVd7X9AwEdBObCY6t4Q+NMRSkzkUbUx8f5oymSmUMM6vQ3eWzLdGSfqcH Ile9w6vORWebDQXALgyfaSw/Hmkw8kbdQtSAV/nsDW4KzraNKH7GW57P3lf20Kowb6+N +KUlEkxxcmVeCLphtPaYcOSx82abESB6CRx5vikjBbG5lF52tMsViuQ9DBKysVRY7c5A Y81w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VXfZD4iV; 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 t18-v6si13561857pga.301.2018.08.06.17.02.06; Mon, 06 Aug 2018 17:02:22 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VXfZD4iV; 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 S2387522AbeHGBub (ORCPT + 99 others); Mon, 6 Aug 2018 21:50:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35292 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732511AbeHGBua (ORCPT ); Mon, 6 Aug 2018 21:50:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OepMvDgitVkbslDlVfLAx+7xirDCIhVDWmMiq8OuIks=; b=VXfZD4iVp4D5oORJRoz6E04fu toEsqpzRclNuZwXUMmobpaCPRpI1jpK8DEKJLOrvkwQnw5wMXWLBtBlBzVEu5mozRT5GfQuB9ojkM L5o0YAmt5IcZFcQThc26Fd92Vur3D4B/6PS8O0YNIlGqEeIpy3C/rL3K513/2viGOE5zcbke0ji07 0we/ARAt4SiYKpWwFMQOSuSg32bug4l+RLMo/R/jY4xpO2S4EC+MKT6Rj2fO+IqTQekDg+8LwjmNK xDDbpIAlAA9SHXm3BX1KcQN+iVS/MWBeHTe+1v0EJ5DSzntxINABlHDFykMspYUFaTPqdX/iGsrLB 7duEbBAqQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmp5S-000474-9c; Mon, 06 Aug 2018 23:38:54 +0000 Subject: Re: [PATCH v2 4/9] target: don't depend on SCSI To: Kees Cook , Jens Axboe Cc: Christoph Hellwig , Christoph Hellwig , "Martin K. Petersen" , "James E.J. Bottomley" , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , "Nicholas A. Bellinger" , Thomas Gleixner , Philippe Ombredanne , Stephen Boyd , Cyrille Pitchen , Juergen Gross , Viresh Kumar , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Sagar Dharia , Vinod Koul , David Kershner , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Bart Van Assche References: <20180731195155.46664-1-keescook@chromium.org> <20180731195155.46664-5-keescook@chromium.org> From: Randy Dunlap Message-ID: <111cb1b0-24ba-bcb2-53d5-9665d2b4c421@infradead.org> Date: Mon, 6 Aug 2018 16:38:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180731195155.46664-5-keescook@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/31/2018 12:51 PM, Kees Cook wrote: > From: Christoph Hellwig > > The core target code only needs code from scsi_common.c, which is now > separately selectable. > > Signed-off-by: Christoph Hellwig > Signed-off-by: Kees Cook > --- > drivers/target/Kconfig | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/target/Kconfig b/drivers/target/Kconfig > index 4c44d7bed01a..cb6f32ce7de8 100644 > --- a/drivers/target/Kconfig > +++ b/drivers/target/Kconfig > @@ -1,10 +1,10 @@ > > menuconfig TARGET_CORE > tristate "Generic Target Core Mod (TCM) and ConfigFS Infrastructure" > - depends on SCSI && BLOCK > + depends on BLOCK > select CONFIGFS_FS > select CRC_T10DIF > - select BLK_SCSI_REQUEST # only for scsi_command_size_tbl.. > + select BLK_SCSI_REQUEST > select SGL_ALLOC > default n > help > @@ -29,6 +29,7 @@ config TCM_FILEIO > > config TCM_PSCSI > tristate "TCM/pSCSI Subsystem Plugin for Linux/SCSI" > + depends on SCSI > help > Say Y here to enable the TCM/pSCSI subsystem plugin for non-buffered > passthrough access to Linux/SCSI device > Hi, This patch causes build errors in linux-next-20180806 when SCSI=m and LOOPBACK_TARGET=y. drivers/target/loopback/tcm_loop.o: In function `tcm_loop_port_link': tcm_loop.c:(.text+0x445): undefined reference to `scsi_add_device' drivers/target/loopback/tcm_loop.o: In function `tcm_loop_driver_remove': tcm_loop.c:(.text+0x55c): undefined reference to `scsi_remove_host' tcm_loop.c:(.text+0x564): undefined reference to `scsi_host_put' drivers/target/loopback/tcm_loop.o: In function `tcm_loop_submission_work': tcm_loop.c:(.text+0x7c4): undefined reference to `scmd_printk' drivers/target/loopback/tcm_loop.o: In function `tcm_loop_driver_probe': tcm_loop.c:(.text+0x7fb): undefined reference to `scsi_host_alloc' tcm_loop.c:(.text+0x85b): undefined reference to `scsi_add_host_with_dma' tcm_loop.c:(.text+0x896): undefined reference to `scsi_host_put' drivers/target/loopback/tcm_loop.o: In function `tcm_loop_port_unlink': tcm_loop.c:(.text+0x962): undefined reference to `scsi_device_lookup' tcm_loop.c:(.text+0x972): undefined reference to `scsi_remove_device' tcm_loop.c:(.text+0x97a): undefined reference to `scsi_device_put' drivers/target/loopback/tcm_loop.o:(.data+0x210): undefined reference to `scsi_change_queue_depth' -- ~Randy