fbdev compat_ioctl warning fix
PATCH 1/3 fbdev compat_ioctl warning fix
Fix some confusion over fbdev compat_ioctl return types - compat_ioctls return `long'.
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/drivers/video/fbmem.c | 3 ++- 25-akpm/include/linux/fb.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
diff -puN drivers/video/sis/sis_main.c~sisfb_compat_ioctl-warning-fix drivers/video/sis/sis_main.c
include/linux/fb.h renamed from include/linux/fb.h~sisfb_compat_ioctl-warning-fix +1 -1
@@ -585,7 +585,7 @@ struct fb_ops { unsigned long arg, struct fb_info *info);/* Handle 32bit compat ioctl (optional) */ -int (*fb_compat_ioctl)(struct file *f,unsigned cmd,unsigned long arg, +long (*fb_compat_ioctl)(struct file *f,unsigned cmd,unsigned long arg,struct fb_info *info);/* perform fb specific mmap */
drivers/video/fbmem.c renamed from drivers/video/fbmem.c~sisfb_compat_ioctl-warning-fix +2 -1
@@ -876,7 +876,8 @@ fb_compat_ioctl(struct file *file, unsigint fbidx =iminor (file->f_dentry->d_inode);struct fb_info *info = registered_fb[fbidx];struct fb_ops *fb = info->fbops; -int ret; +long ret; +if (fb->fb_compat_ioctl ==NULL )return -ENOIOCTLCMD ;lock_kernel ();
_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click