* [PATCH] sis: fix sparse warnings
@ 2005-02-17 0:41 Randy.Dunlap
2005-02-17 1:14 ` Randy.Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2005-02-17 0:41 UTC (permalink / raw)
To: thomas, adaplas; +Cc: linux-fbdev-devel
sis_main.c needs linux/smp_lock.h;
also, fix one function return type.
drivers/video/sis/sis_main.c:2204:2: warning: undefined identifier 'lock_kernel'
drivers/video/sis/sis_main.c:2206:2: warning: undefined identifier 'unlock_kernel'
drivers/video/sis/sis_main.c:2204: warning: implicit declaration of function `lock_kernel'
drivers/video/sis/sis_main.c:2206: warning: implicit declaration of function `unlock_kernel'
drivers/video/sis/sis_main.c:2275:21: warning: incorrect type in initializer (different type sizes)
drivers/video/sis/sis_main.c:2275:21: expected int [signed] ( *fb_compat_ioctl )( ... )
drivers/video/sis/sis_main.c:2275:21: got long [signed] ( static [signed] [toplevel] *<noident> )( ... )
drivers/video/sis/sis_main.c:2275: warning: initialization from incompatible pointer type
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/sis/sis_main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Naurp ./drivers/video/sis/sis_main.c~video_sis_includes ./drivers/video/sis/sis_main.c
--- ./drivers/video/sis/sis_main.c~video_sis_includes 2005-02-15 13:48:46.145337888 -0800
+++ ./drivers/video/sis/sis_main.c 2005-02-15 21:25:40.381740480 -0800
@@ -39,6 +39,7 @@
#include <linux/moduleparam.h>
#endif
#include <linux/kernel.h>
+#include <linux/smp_lock.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/string.h>
@@ -2198,7 +2199,7 @@ sisfb_ioctl(struct inode *inode, struct
}
#ifdef CONFIG_COMPAT
-static long sisfb_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg, struct fb_info *info)
+static int sisfb_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg, struct fb_info *info)
{
int ret;
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] sis: fix sparse warnings
2005-02-17 0:41 [PATCH] sis: fix sparse warnings Randy.Dunlap
@ 2005-02-17 1:14 ` Randy.Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2005-02-17 1:14 UTC (permalink / raw)
To: linux-fbdev-devel; +Cc: thomas, adaplas, akpm
Seeing that Andrew just posted a patch to correct the ioctl
return type, only the include for linux/smp_lock.h is missing.
(Thanks for the message, Thomas.)
sis_main.c needs linux/smp_lock.h;
drivers/video/sis/sis_main.c:2204:2: warning: undefined identifier 'lock_kernel'
drivers/video/sis/sis_main.c:2206:2: warning: undefined identifier 'unlock_kernel'
drivers/video/sis/sis_main.c:2204: warning: implicit declaration of function `lock_kernel'
drivers/video/sis/sis_main.c:2206: warning: implicit declaration of function `unlock_kernel'
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/sis/sis_main.c | 1 +
1 files changed, 1 insertion(+)
diff -Naurp ./drivers/video/sis/sis_main.c~video_sis_includes ./drivers/video/sis/sis_main.c
--- ./drivers/video/sis/sis_main.c~video_sis_includes 2005-02-15 13:48:46.145337888 -0800
+++ ./drivers/video/sis/sis_main.c 2005-02-15 21:25:40.381740480 -0800
@@ -39,6 +39,7 @@
#include <linux/moduleparam.h>
#endif
#include <linux/kernel.h>
+#include <linux/smp_lock.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/string.h>
---
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-17 1:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 0:41 [PATCH] sis: fix sparse warnings Randy.Dunlap
2005-02-17 1:14 ` Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).