Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: spectra: fix build error

blk_queue_ordered() has been deprecated and replaced with
blk_queue_flush() by Tejun. However, use of blk_queue_ordered()
in spectra nand driver has not been converted yet and thus results
in the following build error.

drivers/staging/spectra/ffsport.c: In function SBD_setup_device:
drivers/staging/spectra/ffsport.c:659: error: implicit declaration of function blk_queue_ordered
drivers/staging/spectra/ffsport.c:659: error: QUEUE_ORDERED_DRAIN_FLUSH undeclared (first use in this function)
drivers/staging/spectra/ffsport.c:659: error: (Each undeclared identifier is reported only once
drivers/staging/spectra/ffsport.c:659: error: for each function it appears in.)

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Yong Wang and committed by
Greg Kroah-Hartman
73e1cc4a 3251627c

+1 -1
+1 -1
drivers/staging/spectra/ffsport.c
··· 656 656 /* Here we force report 512 byte hardware sector size to Kernel */ 657 657 blk_queue_logical_block_size(dev->queue, 512); 658 658 659 - blk_queue_ordered(dev->queue, QUEUE_ORDERED_DRAIN_FLUSH); 659 + blk_queue_flush(dev->queue, REQ_FLUSH); 660 660 661 661 dev->thread = kthread_run(spectra_trans_thread, dev, "nand_thd"); 662 662 if (IS_ERR(dev->thread)) {