Thread (2 messages) 2 messages, 1 author, 2005-02-17
DORMANTno replies

[PATCH] sis: fix sparse warnings

From: Randy.Dunlap <hidden>
Date: 2005-02-17 01:14:58

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 <redacted>

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help