2.6.1-rc2-mm1: drm/sis_mm.c compile error

From: Adrian Bunk
Date: Thu Jan 08 2004 - 10:38:37 EST


On Wed, Jan 07, 2004 at 11:28:31PM -0800, Andrew Morton wrote:
>...
> - Added the latest code drop from DRM CVS. People who use DRM, please test
> it.
>...

I got the following compile error:

<-- snip -->

...
CC drivers/char/drm/sis_mm.o
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'
make[3]: *** [drivers/char/drm/sis_mm.o] Error 1

<-- snip -->


This is caused by the following part of the patch to sis_mm.c:


--- linux-2.6.1-rc2/drivers/char/drm/sis_mm.c 2003-09-27 18:57:44.000000000 -0700
+++ 25/drivers/char/drm/sis_mm.c 2004-01-07 22:17:56.000000000 -0800
@@ -34,7 +34,7 @@
#include "sis_drv.h"
#include "sis_ds.h"
#if defined(__linux__) && defined(CONFIG_FB_SIS)
-#include <video/sisfb.h>
+#include <linux/sisfb.h>
#endif

#define MAX_CONTEXT 100


Reverting this chunk fixes the compilation.


cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/