>From 57cee661f97369660077a0d62764dfa50e0a0b5a Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Tue, 21 Feb 2017 17:11:23 -0500 Subject: [PATCH] pata_falcon: build fix for block layer changes commit aebf526b53ae ("block: fold cmd_type into the REQ_OP_ space") from the block tree removes cmd_type so pata_falcon needs the following trivial update to make it build again. Reported-by: Geert Uytterhoeven Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Tejun Heo --- drivers/ata/pata_falcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_falcon.c b/drivers/ata/pata_falcon.c index 7826408..5b0c57d 100644 --- a/drivers/ata/pata_falcon.c +++ b/drivers/ata/pata_falcon.c @@ -54,7 +54,7 @@ static unsigned int pata_falcon_data_xfer(struct ata_queued_cmd *qc, bool swap = 1; if (dev->class == ATA_DEV_ATA && cmd && cmd->request && - cmd->request->cmd_type == REQ_TYPE_FS) + !blk_rq_is_passthrough(cmd->request)) swap = 0; /* Transfer multiple of 2 bytes */ -- 2.9.3