public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5.69-bk19 drm_memory.h compilation error
@ 2003-05-26 13:44 Grzegorz Jaskiewicz
  2003-05-26 14:31 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Grzegorz Jaskiewicz @ 2003-05-26 13:44 UTC (permalink / raw)
  To: lkml; +Cc: Linus

In file included from drivers/char/drm/i810_drv.c:52:
drivers/char/drm/drm_memory.h: In function `drm_ioremapfree':
drivers/char/drm/drm_memory.h:170: error: `PKMAP_BASE' undeclared (first
use in this function)
drivers/char/drm/drm_memory.h:170: error: (Each undeclared identifier is
reported only once
drivers/char/drm/drm_memory.h:170: error: for each function it appears
in.)
make[3]: *** [drivers/char/drm/i810_drv.o] Error 1
make[2]: *** [drivers/char/drm] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2


looks like include/asm/highmem.h is not included.

patch below against 2.5.69-bk19
this helps

----------------------------------------------------------
diff -ur 1/drivers/char/drm/drm_memory.h 2/drivers/char/drm/drm_memory.h
--- 1/drivers/char/drm/drm_memory.h     2003-05-26 14:40:31.000000000
+0100
+++ 2/drivers/char/drm/drm_memory.h     2003-05-26 14:42:29.000000000
+0100
@@ -32,6 +32,14 @@
 #include <linux/config.h>
 #include "drmP.h"

+/*
+ * we need PKMAP_BASE definition
+*/
+
+#ifdef CONFIG_HIGHMEM
+#include <asm/highmem.h>
+#endif
+
 /* Cut down version of drm_memory_debug.h, which used to be called
  * drm_memory.h.  If you want the debug functionality, change 0 to 1
  * below.
------------------------------------------------------------------

-- 
Grzegorz Jaskiewicz <gj@pointblue.com.pl>
K4 labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 2.5.69-bk19 drm_memory.h compilation error
  2003-05-26 14:31 ` Christoph Hellwig
@ 2003-05-26 14:30   ` Grzegorz Jaskiewicz
  2003-05-26 14:43   ` Grzegorz Jaskiewicz
  1 sibling, 0 replies; 4+ messages in thread
From: Grzegorz Jaskiewicz @ 2003-05-26 14:30 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Linus, lkml

On Mon, 2003-05-26 at 15:31, Christoph Hellwig wrote:

> Just include linux/highmem.h (never the asm version!) uncodintionally amd remove
> the noisy comment.

diff -ur 1/drivers/char/drm/drm_memory.h 2/drivers/char/drm/drm_memory.h
--- 1/drivers/char/drm/drm_memory.h     2003-05-26 14:40:31.000000000
+0100
+++ 2/drivers/char/drm/drm_memory.h     2003-05-26 15:28:08.000000000
+0100
@@ -32,6 +32,10 @@
 #include <linux/config.h>
 #include "drmP.h"

+#ifdef CONFIG_HIGHMEM
+#include <linux/highmem.h>
+#endif
+
 /* Cut down version of drm_memory_debug.h, which used to be called
  * drm_memory.h.  If you want the debug functionality, change 0 to 1
  * below.

-- 
Grzegorz Jaskiewicz <gj@pointblue.com.pl>
K4 labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 2.5.69-bk19 drm_memory.h compilation error
  2003-05-26 13:44 [PATCH] 2.5.69-bk19 drm_memory.h compilation error Grzegorz Jaskiewicz
@ 2003-05-26 14:31 ` Christoph Hellwig
  2003-05-26 14:30   ` Grzegorz Jaskiewicz
  2003-05-26 14:43   ` Grzegorz Jaskiewicz
  0 siblings, 2 replies; 4+ messages in thread
From: Christoph Hellwig @ 2003-05-26 14:31 UTC (permalink / raw)
  To: Grzegorz Jaskiewicz; +Cc: lkml, Linus

On Mon, May 26, 2003 at 02:44:44PM +0100, Grzegorz Jaskiewicz wrote:
>  #include <linux/config.h>
>  #include "drmP.h"
> 
> +/*
> + * we need PKMAP_BASE definition
> +*/
> +
> +#ifdef CONFIG_HIGHMEM
> +#include <asm/highmem.h>
> +#endif

Just include linux/highmem.h (never the asm version!) uncodintionally amd remove
the noisy comment.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 2.5.69-bk19 drm_memory.h compilation error
  2003-05-26 14:31 ` Christoph Hellwig
  2003-05-26 14:30   ` Grzegorz Jaskiewicz
@ 2003-05-26 14:43   ` Grzegorz Jaskiewicz
  1 sibling, 0 replies; 4+ messages in thread
From: Grzegorz Jaskiewicz @ 2003-05-26 14:43 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: lkml, Linus

that's better :]

On Mon, 2003-05-26 at 15:31, Christoph Hellwig wrote:

> Just include linux/highmem.h (never the asm version!) uncodintionally amd remove
> the noisy comment.
> 
diff -ur 1/drivers/char/drm/drm_memory.h 2/drivers/char/drm/drm_memory.h
--- 1/drivers/char/drm/drm_memory.h     2003-05-26 14:40:31.000000000
+0100
+++ 2/drivers/char/drm/drm_memory.h     2003-05-26 15:41:47.000000000
+0100
@@ -32,6 +32,8 @@
 #include <linux/config.h>
 #include "drmP.h"

+#include <linux/highmem.h>
+
 /* Cut down version of drm_memory_debug.h, which used to be called
  * drm_memory.h.  If you want the debug functionality, change 0 to 1
  * below.

-- 
Grzegorz Jaskiewicz <gj@pointblue.com.pl>
K4 labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-26 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-26 13:44 [PATCH] 2.5.69-bk19 drm_memory.h compilation error Grzegorz Jaskiewicz
2003-05-26 14:31 ` Christoph Hellwig
2003-05-26 14:30   ` Grzegorz Jaskiewicz
2003-05-26 14:43   ` Grzegorz Jaskiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox