Adrian Bunk <[EMAIL PROTECTED]> wrote:
>
> drivers/char/drm/sis_mm.c:37:25: linux/sisfb.h: No such file or directory
>  drivers/char/drm/sis_mm.c: In function `sis_fb_alloc':
>  drivers/char/drm/sis_mm.c:92: error: storage size of `req' isn't known
>  drivers/char/drm/sis_mm.c:98: warning: implicit declaration of function `sis_malloc'
>  drivers/char/drm/sis_mm.c:105: warning: implicit declaration of function `sis_free'
>  drivers/char/drm/sis_mm.c:92: warning: unused variable `req'

Yes.  The video header files were moved.  I assume this code is also
designed to build under 2.4.  If so, something like this is the way to go:

---

 drivers/char/drm/sis_mm.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -puN drivers/char/drm/sis_mm.c~drm-include-fix drivers/char/drm/sis_mm.c
--- 25/drivers/char/drm/sis_mm.c~drm-include-fix        2004-01-08 10:14:41.000000000 
-0800
+++ 25-akpm/drivers/char/drm/sis_mm.c   2004-01-08 10:16:49.000000000 -0800
@@ -34,8 +34,12 @@
 #include "sis_drv.h"
 #include "sis_ds.h"
 #if defined(__linux__) && defined(CONFIG_FB_SIS)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#include <video/sisfb.h>
+#else
 #include <linux/sisfb.h>
 #endif
+#endif
 
 #define MAX_CONTEXT 100
 #define VIDEO_TYPE 0 

_



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to