If you compile the nforce-audio module on a 2.6.16-rcX kernel you will get problem with:
Code: Select all
nvsound: Unknown symbol remap_page_range (this function was replaced by remap_pfn_range in the kernel)....
After some searching I found it was simply fixed by commenting out the wrong assumption in the Makefile like this: ('diff -u' output)
Code: Select all
--- nvsound.a/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/Makefile.kbuild 2005-10-22 03:59:44.000000000 +0200
+++ nvsound.b/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/Makefile.kbuild 2006-02-22 21:51:33.000000000 +0100
@@ -48,16 +48,16 @@
EXTRA_LDFLAGS := -d
# Figure out how many args remap_page_ranges() wants or new remap call
-ifeq ($(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_pfn_range), 1)
- EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT
-else
- REMAP_PAGE_RANGE := $(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_page_range)
-
- ifeq ($(REMAP_PAGE_RANGE),5)
- EXTRA_CFLAGS += -DREMAP_NEW
- endif
+#ifeq ($(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_pfn_range), 1)
+EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT
+#else
+# REMAP_PAGE_RANGE := $(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_page_range)
+
+# ifeq ($(REMAP_PAGE_RANGE),5)
+#EXTRA_CFLAGS += -DREMAP_NEW
+# endif
-endif
+#endif




