fbdev/uvesafb: Remove uvesafb_exec() prototype from include/video/uvesafb.h
Subsystems (2)
PATCH 1/2 fbdev/uvesafb: Remove uvesafb_exec() prototype from include/video/uvesafb.h
uvesafb_exec() is a static function defined and called only in drivers/video/fbdev/uvesafb.c, remove the prototype from include/video/uvesafb.h.
Fixes the warning:./include/video/uvesafb.h:112:12: warning: 'uvesafb_exec' declared 'static' but never defined [-Wunused-function] when including '<video/uvesafb.h>' in an external program.
--- include/video/uvesafb.h | 2 -- 1 file changed, 2 deletions(-)
include/video/uvesafb.h +0 -2
@@ -109,8 +109,6 @@ struct uvesafb_ktask {u32 ack; }; -static int uvesafb_exec (struct uvesafb_ktask *tsk); -#define UVESAFB_EXACT_RES 1#define UVESAFB_EXACT_DEPTH 2
Signature · 1 line
2.30.2
PATCH 2/2 fbdev/uvesafb: Call cn_del_callback() at the end of uvesafb_exit()
Delete the v86d netlink only after all the VBE tasks have been completed.
Fixes initial state restore on module unload:
uvesafb: VBE state restore call failed (eax=0x4f04, err=-19)
--- drivers/video/fbdev/uvesafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/uvesafb.c +1 -1
@@ -1928,10 +1928,10 @@ static void uvesafb_exit(void) } } -cn_del_callback (&uvesafb_cn_id);driver_remove_file (&uvesafb_driver.driver, &driver_attr_v86d);platform_device_unregister (uvesafb_device);platform_driver_unregister (&uvesafb_driver); +cn_del_callback (&uvesafb_cn_id); }module_exit (uvesafb_exit);
Signature · 1 line
2.30.2
Helge Deller
maintainerQuoted 9 lines · Jorge Maidana
uvesafb_exec()is a static function defined and called only indrivers/video/fbdev/uvesafb.c, remove the prototype frominclude/video/uvesafb.h.Fixes the warning:
./include/video/uvesafb.h:112:12: warning: 'uvesafb_exec' declared 'static' but never defined [-Wunused-function] when including '<video/uvesafb.h>' in an external program.Signed-off-by Jorge Maidana <[email protected]>
applied both patches.
Thanks!
Helge
Quoted 17 lines
--- include/video/uvesafb.h | 2 -- 1 file changed, 2 deletions(-)include/video/uvesafb.h +0
-2@@ -109,8 +109,6 @@ struct uvesafb_ktask {u32 ack; }; -static int uvesafb_exec (struct uvesafb_ktask *tsk); -#define UVESAFB_EXACT_RES 1#define UVESAFB_EXACT_DEPTH 2