Staging: spectra: update blk_queue_ordered()
Subsystems (2)
PATCH 1/1 Staging: spectra: update blk_queue_ordered()
blk_queue_ordered() isn't around anymore so this causes a compile error. That change was in 4913efe456c "block: deprecate barrier and replace blk_queue_ordered() with blk_queue_flush()"
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/spectra/ffsport.c +1 -1
@@ -656,7 +656,7 @@ static int SBD_setup_device(struct spectra_nand_dev *dev, int which)/* Here we force report 512 byte hardware sector size to Kernel */ blk_queue_logical_block_size (dev->queue,512 ); -blk_queue_ordered (dev->queue,QUEUE_ORDERED_DRAIN_FLUSH ); +blk_queue_flush (dev->queue,REQ_FLUSH ); dev->thread =kthread_run (spectra_trans_thread, dev,"nand_thd" );if (IS_ERR (dev->thread)) {
Quoted 5 lines · Dan Carpenter
blk_queue_ordered()isn't around anymore so this causes a compile error. That change was in4913efe456c"block: deprecate barrier and replaceblk_queue_ordered()withblk_queue_flush()"Signed-off-by Dan Carpenter<[email protected]>
Acked-by Pekka Enberg <[email protected]>
Quoted 14 lines
drivers/staging/spectra/ffsport.c +1
-1@@ -656,7 +656,7 @@ static int SBD_setup_device(struct spectra_nand_dev *dev, int which)/* Here we force report 512 byte hardware sector size to Kernel */ blk_queue_logical_block_size (dev->queue,512 ); -blk_queue_ordered (dev->queue,QUEUE_ORDERED_DRAIN_FLUSH ); +blk_queue_flush (dev->queue,REQ_FLUSH ); dev->thread =kthread_run (spectra_trans_thread, dev,"nand_thd" );if (IS_ERR (dev->thread)) {
Quoted 8 lines · Pekka Enberg
Quoted 5 lines · Dan Carpenter
blk_queue_ordered()isn't around anymore so this causes a compile error. That change was in4913efe456c"block: deprecate barrier and replaceblk_queue_ordered()withblk_queue_flush()"Signed-off-by Dan Carpenter<[email protected]>Acked-by Pekka Enberg <[email protected]>
Heh, someone else already sent me this patch, it's on the way to Linus shortly.
thanks,
greg k-h