diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:38:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:29 -0400 |
commit | 28cdf76bf0bce757428f84161e3aa510028d47b4 (patch) | |
tree | 38ab45af5bcfa7b2ba69a8989b9a8b1f5249ed0c | |
parent | 75814d87a976cc12675024c0a03e3ac3369465a0 (diff) |
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>
-rw-r--r-- | drivers/video/hecubafb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index ea5a6c9e2c4e..dc12e2d5489e 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c | |||
@@ -214,7 +214,7 @@ static void apollo_send_command(struct hecubafb_par *par, unsigned char data) | |||
214 | static void hecubafb_dpy_update(struct hecubafb_par *par) | 214 | static void hecubafb_dpy_update(struct hecubafb_par *par) |
215 | { | 215 | { |
216 | int i; | 216 | int i; |
217 | unsigned char *buf = par->info->screen_base; | 217 | unsigned char *buf = (unsigned char __force *)par->info->screen_base; |
218 | 218 | ||
219 | apollo_send_command(par, 0xA0); | 219 | apollo_send_command(par, 0xA0); |
220 | 220 | ||
@@ -303,7 +303,7 @@ static ssize_t hecubafb_write(struct file *file, const char __user *buf, | |||
303 | if (count) { | 303 | if (count) { |
304 | char *base_addr; | 304 | char *base_addr; |
305 | 305 | ||
306 | base_addr = info->screen_base; | 306 | base_addr = (char __force *)info->screen_base; |
307 | count -= copy_from_user(base_addr + p, buf, count); | 307 | count -= copy_from_user(base_addr + p, buf, count); |
308 | *ppos += count; | 308 | *ppos += count; |
309 | err = -EFAULT; | 309 | err = -EFAULT; |
@@ -409,7 +409,7 @@ static int __devexit hecubafb_remove(struct platform_device *dev) | |||
409 | if (info) { | 409 | if (info) { |
410 | fb_deferred_io_cleanup(info); | 410 | fb_deferred_io_cleanup(info); |
411 | unregister_framebuffer(info); | 411 | unregister_framebuffer(info); |
412 | vfree(info->screen_base); | 412 | vfree((void __force *)info->screen_base); |
413 | framebuffer_release(info); | 413 | framebuffer_release(info); |
414 | } | 414 | } |
415 | return 0; | 415 | return 0; |