hecubafb: kill sparse warnings
The framebuffer memory is allocated from system RAM (vmalloc'ed). Add __force
annotations.
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c
index ea5a6c9..dc12e2d 100644
--- a/drivers/video/hecubafb.c
+++ b/drivers/video/hecubafb.c
@@ -214,7 +214,7 @@
static void hecubafb_dpy_update(struct hecubafb_par *par)
{
int i;
- unsigned char *buf = par->info->screen_base;
+ unsigned char *buf = (unsigned char __force *)par->info->screen_base;
apollo_send_command(par, 0xA0);
@@ -303,7 +303,7 @@
if (count) {
char *base_addr;
- base_addr = info->screen_base;
+ base_addr = (char __force *)info->screen_base;
count -= copy_from_user(base_addr + p, buf, count);
*ppos += count;
err = -EFAULT;
@@ -409,7 +409,7 @@
if (info) {
fb_deferred_io_cleanup(info);
unregister_framebuffer(info);
- vfree(info->screen_base);
+ vfree((void __force *)info->screen_base);
framebuffer_release(info);
}
return 0;