Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=28cdf76bf0bce757428f84161e3aa510028d47b4 Commit: 28cdf76bf0bce757428f84161e3aa510028d47b4 Parent: 75814d87a976cc12675024c0a03e3ac3369465a0 Author: Antonino A. Daplas <[EMAIL PROTECTED]> AuthorDate: Tue May 8 00:38:50 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue May 8 11:15:29 2007 -0700
hecubafb: kill sparse warnings The framebuffer memory is allocated from system RAM (vmalloc'ed). Add __force annotations. Signed-off-by: Antonino Daplas <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- 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 ea5a6c9..dc12e2d 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) 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 @@ static ssize_t hecubafb_write(struct file *file, const char __user *buf, 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 @@ static int __devexit hecubafb_remove(struct platform_device *dev) 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html