Skip to contentSkip to conversation

HID: picoLCD: Remove use of deprecated function

PATCH In review Emil Goode 4 participants 6 messages Sep 6, 2012 – Oct 2, 2012

Subsystems (3)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 HID: picoLCD: Remove use of deprecated function

The flush_delayed_work_sync function is deprecated, we can instead call flush_delayed_work directly.

Sparse is giving a warning:
drivers/hid/hid-picolcd_fb.c:611:2: warning:
‘flush_delayed_work_sync’ is deprecated (declared at include/linux/workqueue.h:454) [-Wdeprecated-declarations]

---
 drivers/hid/hid-picolcd_fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-picolcd_fb.c +1 -1
index 0008a51..eb00357 100644
@@ -608,7 +608,7 @@ void picolcd_exit_framebuffer(struct picolcd_data *data)
 	/* make sure there is no running update - thus that fbdata->picolcd
 	 * once obtained under lock is guaranteed not to get free() under
 	 * the feet of the deferred work */
-	flush_delayed_work_sync(&info->deferred_work);
+	flush_delayed_work(&info->deferred_work);
 
 	data->fb_info = NULL;
 	unregister_framebuffer(info);
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Thu, 06 September 2012 Emil Goode <[email protected]> wrote:

The flush_delayed_work_sync function is deprecated, we can instead call flush_delayed_work directly.

Sparse is giving a warning:
drivers/hid/hid-picolcd_fb.c:611:2: warning:
‘flush_delayed_work_sync’ is deprecated (declared at include/linux/workqueue.h:454) [-Wdeprecated-declarations]

This matches a patch by Tejun a few weeks ago which was partially skipped in -next due to merge conflict with code split in picoLCD.

See http://comments.gmane.org/gmane.linux.kernel.next/23740

For the sake of proper bisectability, this should go in after Tejun's workqueue changes (if needed at all depending on how merge happens during pull by Linus).

Bruno

Quoted 17 lines
---
 drivers/hid/hid-picolcd_fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-picolcd_fb.c +1 -1
index 0008a51..eb00357 100644
@@ -608,7 +608,7 @@ void picolcd_exit_framebuffer(struct picolcd_data *data)
 	/* make sure there is no running update - thus that fbdata->picolcd
 	 * once obtained under lock is guaranteed not to get free() under
 	 * the feet of the deferred work */
-	flush_delayed_work_sync(&info->deferred_work);
+	flush_delayed_work(&info->deferred_work);
 
 	data->fb_info = NULL;
 	unregister_framebuffer(info);
#2 lore raw
Quoted 14 lines · Bruno Prémont
Quoted 10 lines · On Thu, 06 September 2012 Emil Goode <[email protected]> wrote:

The flush_delayed_work_sync function is deprecated, we can instead call flush_delayed_work directly.

Sparse is giving a warning:
drivers/hid/hid-picolcd_fb.c:611:2: warning:
‘flush_delayed_work_sync’ is deprecated (declared at include/linux/workqueue.h:454) [-Wdeprecated-declarations]

Quoted 8 lines

This matches a patch by Tejun a few weeks ago which was partially skipped in -next due to merge conflict with code split in picoLCD.

See http://comments.gmane.org/gmane.linux.kernel.next/23740

For the sake of proper bisectability, this should go in after Tejun's workqueue changes (if needed at all depending on how merge happens during pull by Linus).

Yeah, we either can ask Linus to fix it up during merge or send a separate patch afterwards. In this case, I don't think it matters too much either way. I tend to send out pull request fairly early in the merge window, I'll try to remember to poke Linus about the merge conflict.

Thanks.

Signature · 1 line
tejun
#3 lore raw
Quoted 22 lines · Tejun Heo
Quoted 13 lines
Quoted 10 lines

The flush_delayed_work_sync function is deprecated, we can instead call flush_delayed_work directly.

Sparse is giving a warning:
drivers/hid/hid-picolcd_fb.c:611:2: warning:
‘flush_delayed_work_sync’ is deprecated (declared at include/linux/workqueue.h:454) [-Wdeprecated-declarations]

Quoted 8 lines

This matches a patch by Tejun a few weeks ago which was partially skipped in -next due to merge conflict with code split in picoLCD.

See http://comments.gmane.org/gmane.linux.kernel.next/23740

For the sake of proper bisectability, this should go in after Tejun's workqueue changes (if needed at all depending on how merge happens during pull by Linus).

Quoted 5 lines

Yeah, we either can ask Linus to fix it up during merge or send a separate patch afterwards. In this case, I don't think it matters too much either way. I tend to send out pull request fairly early in the merge window, I'll try to remember to poke Linus about the merge conflict.

Okay, fair enough. I'll try not to forget to CC you on my pull request which will include those picolcd changes, and mention the potential conflict to Linus as well. We'll see which one goes in first :)

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#4 lore raw
In reply to Tejun Heo
Quoted 19 lines · Tejun Heo
Quoted 10 lines
Quoted 7 lines

Sparse is giving a warning:
drivers/hid/hid-picolcd_fb.c:611:2: warning:
‘flush_delayed_work_sync’ is deprecated (declared at include/linux/workqueue.h:454) [-Wdeprecated-declarations]

Quoted 8 lines

This matches a patch by Tejun a few weeks ago which was partially skipped in -next due to merge conflict with code split in picoLCD.

See http://comments.gmane.org/gmane.linux.kernel.next/23740

For the sake of proper bisectability, this should go in after Tejun's workqueue changes (if needed at all depending on how merge happens during pull by Linus).

Quoted 5 lines

Yeah, we either can ask Linus to fix it up during merge or send a separate patch afterwards. In this case, I don't think it matters too much either way. I tend to send out pull request fairly early in the merge window, I'll try to remember to poke Linus about the merge conflict.

Linus has just pulled from me, so if you could take care of this merge conflict, that'd be awesome.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#5 lore raw
Quoted 2 lines · Jiri Kosina

Linus has just pulled from me, so if you could take care of this merge conflict, that'd be awesome.

Will do. Thanks.

Signature · 1 line
tejun