Thread (26 messages) 26 messages, 5 authors, 2018-07-31

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

From: Christoph Hellwig <hch@infradead.org>
Date: 2018-05-23 14:25:56
Also in: linux-ide, linux-scsi, lkml

Possibly related (same subject, not in this thread)

On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help