[PATCH] 2.5.21 "I can't get no compilation"

Martin Dalecki
2002-06-10T12:18:24Z

[-- Attachment #1: Type: text/plain, Size: 118 bytes --]

The subject says it all...

Contrary to other proposed patches I realized that there is
no such thing as vmalloc_dma.

[-- Attachment #2: compile-2.5.21-1.diff --]
[-- Type: text/plain, Size: 1706 bytes --]

diff -urN linux-2.5.21/drivers/media/video/tda9875.c linux/drivers/media/video/tda9875.c
--- linux-2.5.21/drivers/media/video/tda9875.c 2002-06-09 07:29:29.000000000 +0200
+++ linux/drivers/media/video/tda9875.c 2002-06-09 19:24:06.000000000 +0200
@@ -28,6 +28,7 @@
#include <linux/videodev.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
+#include <linux/init.h>

#include "bttv.h"
#include "audiochip.h"
diff -urN linux-2.5.21/drivers/pnp/pnpbios_proc.c linux/drivers/pnp/pnpbios_proc.c
--- linux-2.5.21/drivers/pnp/pnpbios_proc.c 2002-06-09 07:31:26.000000000 +0200
+++ linux/drivers/pnp/pnpbios_proc.c 2002-06-09 17:57:42.000000000 +0200
@@ -28,6 +28,7 @@
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/pnpbios.h>
+#include <linux/init.h>

static struct proc_dir_entry *proc_pnp = NULL;
static struct proc_dir_entry *proc_pnp_boot = NULL;
diff -urN linux-2.5.21/include/linux/vmalloc.h linux/include/linux/vmalloc.h
--- linux-2.5.21/include/linux/vmalloc.h 2002-06-09 07:31:29.000000000 +0200
+++ linux/include/linux/vmalloc.h 2002-06-09 18:44:41.000000000 +0200
@@ -28,7 +28,6 @@
*/

extern void * vmalloc(unsigned long size);
-extern void * vmalloc_dma(unsigned long size);
extern void * vmalloc_32(unsigned long size);

/*
diff -urN linux-2.5.21/kernel/ksyms.c linux/kernel/ksyms.c
--- linux-2.5.21/kernel/ksyms.c 2002-06-09 07:26:33.000000000 +0200
+++ linux/kernel/ksyms.c 2002-06-09 18:43:30.000000000 +0200
@@ -108,6 +108,8 @@
EXPORT_SYMBOL(kfree);
EXPORT_SYMBOL(vfree);
EXPORT_SYMBOL(__vmalloc);
+EXPORT_SYMBOL(vmalloc);
+EXPORT_SYMBOL(vmalloc_32);
EXPORT_SYMBOL(vmalloc_to_page);
EXPORT_SYMBOL(mem_map);
EXPORT_SYMBOL(remap_page_range);