Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp914245imm; Wed, 23 May 2018 07:28:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpb/FN6+viqCNd/mERU5UeAIIFy9Q7oe5IFH7js927sYPv762uq0lLa/+SC3DznkKUeIsgm X-Received: by 2002:a63:b907:: with SMTP id z7-v6mr2583738pge.9.1527085695718; Wed, 23 May 2018 07:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527085695; cv=none; d=google.com; s=arc-20160816; b=dGUGq0ZucyxJIBHxK98YG4MPBHiEK1BbAmzSkJOrJCFmtjm6zsPeKk9k5dGp6IYv/D 44ZagaSx06gnZ+9G2giw3o+6IXfEFiATN3EVmcP3ghEr8yJbBL1272FnAL9jne5Bqk7D 5iOd4HnI5ABtphNcF+lzKZnsBpToBzfj9Rr0TUhA/0vKkdug3PGR+kMvewbcX7ANBZxr fSV3vZwKWqoz8Nnj6JI8Jl2VsERp3D+ypEaOCVSEVFOVdgVZIkb2AeDDHbPflAjcb2GG 6opkHz4Iq8m5R88m385sRKz/eW+R4s0DnI5w7ZYRaMttSVPVH8Jznkxj/dH7phmk1jK+ HypA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=28IBjxNoG/MPok9TjNyuSUfhEA5rNmDO8xC5gGhEL70=; b=0htq7ctT/pcxwGpXG9bM1KjGoaT3EOW7NVz1QjPAJhWDyuyBeKv9gjg7aGEIaCKQ/A sARmpOphMpYwg1emQHTx3r4ZvGY30rOzdCDbEGh1eFjKzWP8wDz21pcgeeKXys+dwKOa ZDFGLmHZtqQp3ingrnAloboH0wouSLOPzba0/v61g65LBPAWd7J4OhedpJR6JuQMq1Im 8C25k2OKtr7/cdm1CDVZl9YJBPcJbkrkBUsX4GNdEZIeRYe+BZDbRf3E6sEZeEjCIcy4 Du6D/AFz8w29YQwDcdsPtj9R3wQgJvOXq7FO1SutqrfKtco/DQBAxa+vIGDyhXEebwp5 x5cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=isL34XVs; 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 w23-v6si2171765ply.563.2018.05.23.07.27.54; Wed, 23 May 2018 07:28:15 -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=isL34XVs; 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 S933321AbeEWOZ4 (ORCPT + 99 others); Wed, 23 May 2018 10:25:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59972 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933114AbeEWOZw (ORCPT ); Wed, 23 May 2018 10:25:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=28IBjxNoG/MPok9TjNyuSUfhEA5rNmDO8xC5gGhEL70=; b=isL34XVs1h8ZvqqM/KlC3wVRz ZopSvkT+jfqRNdkouQmCXQ/Pc1zFV5egx+GtEp4sS6O2WFwq6xx0P1KA1zuDHWcKgUfBREyWD3P1h MwCO7wurNsvinJcgvQPUsamM7v0kq/8P64SfIVetU4E/YO2e4IlIvftRh3j9a4eZCs2+zUgcTVebP 8Ynsvn4kkZrYdLQWmDmY04VzNp+P+c9vJoQSLUFMW9pcFZTPXjVKmpl9yx/MW7LGTToag+M1UoLrP 23k89ZncoDsZhlbg+zIr5uEE8E/HU+umxgLUzz7osX8zN8yBghgdMGUpGkbvGjauJ9aO80XKgXwUm YvSxye30w==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLUi1-0006KK-D0; Wed, 23 May 2018 14:25:45 +0000 Date: Wed, 23 May 2018 07:25:45 -0700 From: Christoph Hellwig To: Jens Axboe Cc: Kees Cook , Christoph Hellwig , "Martin K. Petersen" , James Bottomley , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , linux-block , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, LKML Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI Message-ID: <20180523142545.GA16248@infradead.org> References: <20180522183613.GA3784@infradead.org> <732f4249-5681-4a54-ec21-4ecc3d3a74e5@kernel.dk> <20180522191309.GA23615@infradead.org> <8d4af5c4-96fa-54ee-d5c1-b887b1de5a3c@kernel.dk> <9A0BC289-4203-4C77-A012-AAB07F42061F@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote: > > Should I move to code to a new drivers/scsi/scsi_sense.c and add it to > > drivers/scsi/Makefile as: > > > > obj-$(CONFIG_BLK_SCSI_REQUEST) += scsi_sense.o > > > > Every place I want to use the code is already covered by > > CONFIG_BLK_SCSI_REQUEST, so it seems like I just need to know where to > > put the .c file. :P > > I think this is so much saner than a SCSI select or dependency, so I'll > have to disagree with Martin and Christoph. Just put it in drivers/scsi, > if it's the location they care about. I actually plan to remove CONFIG_BLK_SCSI_REQUEST in a merge window or two. The only users are scsi and the ide layer, (virtio_blk support has already been accidentally disabled for a while), and getting rid of it allows to to shrink and simply the scsi data structures. But if you want this for now lets keep scsi_sense.c in drivers/scsi but depend on CONFIG_BLK_SCSI_REQUEST, that is easy enough to fix up.