Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Driver 2002-11-08 problems



Holger Waechtler wrote:
> 
> Martin Hammerschmid wrote:
> >
> > dvb-ttpci.o: unresolved symbol remap_page_range
> 
> ?!?
> 
> remap_page_range() is implemented in linux/mm/memory.c. If you don't
> have this symbol in your kernel I doubt that anything else works...
> 
> Are you sure you configured and built your kernel correctly?
> 
> Holger

well, this tiny patch does the trick for my 2.4.17 kernel.
still don't understand why it does not work for me as it is.


diff -ruN DVB/driver/av7110/saa7146_core.c DVB1/driver/av7110/saa7146_core.c
--- DVB/driver/av7110/saa7146_core.c	Fri Nov  8 12:33:19 2002
+++ DVB1/driver/av7110/saa7146_core.c	Fri Nov  8 19:44:21 2002
@@ -369,7 +369,7 @@
 			while (size > 0) 
 			{
 			        page = kvirt_to_pa(pos);
-				if (remap_page_range(vma, start, page,
+				if (remap_page_range( /*vma,*/ start, page,
 						     PAGE_SIZE, PAGE_SHARED))
 					return -EAGAIN;
 				start	+= PAGE_SIZE;
diff -ruN DVB/driver/compat.h DVB1/driver/compat.h
--- DVB/driver/compat.h	Fri Nov  8 16:39:24 2002
+++ DVB1/driver/compat.h	Fri Nov  8 19:43:44 2002
@@ -54,10 +54,10 @@
 }
 
 extern struct page * vmalloc_to_page(void *addr);
-
+/*
 #define remap_page_range(vma,from,to,size,prot) \
 	remap_page_range(from,to,size,prot)
-
+*/
 #endif
 


Martin

========== mailto:martin@hammerschmid.com ==========
=RSA-PGP-Key ID:0x81783FE7 DH-PGP-Key ID:0x6B66589A=
====================================================


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index