Commit 28cdf76b authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

hecubafb: kill sparse warnings

The framebuffer memory is allocated from system RAM (vmalloc'ed).  Add __force
annotations.
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 75814d87
...@@ -214,7 +214,7 @@ static void apollo_send_command(struct hecubafb_par *par, unsigned char data) ...@@ -214,7 +214,7 @@ static void apollo_send_command(struct hecubafb_par *par, unsigned char data)
static void hecubafb_dpy_update(struct hecubafb_par *par) static void hecubafb_dpy_update(struct hecubafb_par *par)
{ {
int i; int i;
unsigned char *buf = par->info->screen_base; unsigned char *buf = (unsigned char __force *)par->info->screen_base;
apollo_send_command(par, 0xA0); apollo_send_command(par, 0xA0);
...@@ -303,7 +303,7 @@ static ssize_t hecubafb_write(struct file *file, const char __user *buf, ...@@ -303,7 +303,7 @@ static ssize_t hecubafb_write(struct file *file, const char __user *buf,
if (count) { if (count) {
char *base_addr; char *base_addr;
base_addr = info->screen_base; base_addr = (char __force *)info->screen_base;
count -= copy_from_user(base_addr + p, buf, count); count -= copy_from_user(base_addr + p, buf, count);
*ppos += count; *ppos += count;
err = -EFAULT; err = -EFAULT;
...@@ -409,7 +409,7 @@ static int __devexit hecubafb_remove(struct platform_device *dev) ...@@ -409,7 +409,7 @@ static int __devexit hecubafb_remove(struct platform_device *dev)
if (info) { if (info) {
fb_deferred_io_cleanup(info); fb_deferred_io_cleanup(info);
unregister_framebuffer(info); unregister_framebuffer(info);
vfree(info->screen_base); vfree((void __force *)info->screen_base);
framebuffer_release(info); framebuffer_release(info);
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment