Skip to contentSkip to conversation

fix staging/spectra: removes q->prepare_flush_fn

PATCH In review Javier Martinez Canillas 3 participants 6 messages Jul 10, 2010 – Jul 17, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 fix staging/spectra: removes q->prepare_flush_fn

This patch is the first one of a patchset that allows stagin/spectra driver to compile in linux-next.

blk_queue_ordered doesn't receive a prepare flush function anymore

---
 drivers/staging/spectra/ffsport.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
drivers/staging/spectra/ffsport.c +1 -9
index d0c5c97..eca6536 100644
@@ -272,13 +272,6 @@ static int get_res_blk_num_os(void)
 	return res_blks;
 }
 
-static void SBD_prepare_flush(struct request_queue *q, struct request *rq)
-{
-	rq->cmd_type = REQ_TYPE_LINUX_BLOCK;
-	/* rq->timeout = 5 * HZ; */
-	rq->cmd[0] = REQ_LB_OP_FLUSH;
-}
-
 /* Transfer a full request. */
 static int do_transfer(struct spectra_nand_dev *tr, struct request *req)
 {
@@ -650,8 +643,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,
-					SBD_prepare_flush);
+	blk_queue_ordered(dev->queue, QUEUE_ORDERED_DRAIN_FLUSH);
 
 	dev->thread = kthread_run(spectra_trans_thread, dev, "nand_thd");
 	if (IS_ERR(dev->thread)) {
Signature · 1 line
1.7.0.4
Acked-by on v1 1/3
#1 lore raw
Quoted 6 lines · Javier Martinez Canillas

This patch is the first one of a patchset that allows stagin/spectra driver to compile in linux-next.

blk_queue_ordered doesn't receive a prepare flush function anymore

These 3 patches fix the build errors.
There are still some warnings that should be addressed.

Thanks.

Quoted 32 lines
---
 drivers/staging/spectra/ffsport.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
drivers/staging/spectra/ffsport.c +1 -9
index d0c5c97..eca6536 100644
@@ -272,13 +272,6 @@ static int get_res_blk_num_os(void)
 	return res_blks;
 }
 
-static void SBD_prepare_flush(struct request_queue *q, struct request *rq)
-{
-	rq->cmd_type = REQ_TYPE_LINUX_BLOCK;
-	/* rq->timeout = 5 * HZ; */
-	rq->cmd[0] = REQ_LB_OP_FLUSH;
-}
-
 /* Transfer a full request. */
 static int do_transfer(struct spectra_nand_dev *tr, struct request *req)
 {
@@ -650,8 +643,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,
-					SBD_prepare_flush);
+	blk_queue_ordered(dev->queue, QUEUE_ORDERED_DRAIN_FLUSH);
 
 	dev->thread = kthread_run(spectra_trans_thread, dev, "nand_thd");
 	if (IS_ERR(dev->thread)) {
Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#2 lore raw
In reply to Javier Martinez Canillas
Quoted 9 lines

These 3 patches fix the build errors.
There are still some warnings that should be addressed.

Thanks.

Thanks a lot for reviewing the patches. I can address the warnings. Should I send patches as a delta of these three patches or do I resend a patchset containing these three and the others that will address the warnings?

Best regards,

-----------------------------------------
Javier Martínez Canillas
+595 981 88 66 58
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Javier Martinez Canillas
Quoted 6 lines · Javier Martinez Canillas
Quoted 6 lines

These 3 patches fix the build errors.
There are still some warnings that should be addressed.

Thanks.

Quoted 8 lines
Quoted 3 lines

Thanks a lot for reviewing the patches. I can address the warnings. Should I send patches as a delta of these three patches or do I resend a patchset containing these three and the others that will address the warnings?

Greg, which do you prefer?

I would just send more patches as deltas, but it's up to Greg. AFAIK, he hasn't applied these 3 yet.

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#4 lore raw
In reply to Javier Martinez Canillas
Quoted 16 lines · Randy Dunlap
Quoted 6 lines · Javier Martinez Canillas
Quoted 6 lines

These 3 patches fix the build errors.
There are still some warnings that should be addressed.

Thanks.

Quoted 8 lines
Quoted 3 lines

Thanks a lot for reviewing the patches. I can address the warnings. Should I send patches as a delta of these three patches or do I resend a patchset containing these three and the others that will address the warnings?

Quoted 4 lines

Greg, which do you prefer?

I would just send more patches as deltas, but it's up to Greg. AFAIK, he hasn't applied these 3 yet.

Or should I keep a tree for the spectra driver, apply patches to *that* and ask Greg to pull from it?

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#5 lore raw
In reply to Javier Martinez Canillas
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines

These 3 patches fix the build errors.
There are still some warnings that should be addressed.

Thanks.

Quoted 8 lines
Quoted 3 lines

Thanks a lot for reviewing the patches. I can address the warnings. Should I send patches as a delta of these three patches or do I resend a patchset containing these three and the others that will address the warnings?

Quoted 5 lines

Greg, which do you prefer?

I would just send more patches as deltas, but it's up to Greg. AFAIK, he hasn't applied these 3 yet.

I prepared another patchset that removes all the warnings. This patches are a delta from the previous patchset so it assumes that these three patches all already applied:

[PATCH 1/3] fix staging/spectra: removes q->prepare_flush_fn [PATCH 2/3] fix staging/spectra: use new REQ_FLUSH flag [PATCH 3/3] fix staging/spectra: don't use locked_ioctl

The new patchset contains the following patches:

[PATCH 1/4] staging/spectra: remove duplicate GLOB_VERSION definition [PATCH 2/4] staging/spectra: remove unused variable
[PATCH 3/4] staging/spectra: initializa lblk variable [PATCH 4/4] staging/spectra: remove unused functions

Best regards,

-----------------------------------------
Javier Martínez Canillas
+595 981 88 66 58

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html