patch-2.4.0-test4 linux/include/linux/highmem.h

Next file: linux/include/linux/if_eql.h
Previous file: linux/include/linux/hdlcdrv.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/include/linux/highmem.h linux/include/linux/highmem.h
@@ -23,7 +23,11 @@
 extern inline unsigned int nr_free_highpages(void) { return 0; }
 #define prepare_highmem_swapout(page) page
 #define replace_with_highmem(page) page
-#define kmap(page) page_address(page)
+
+static __inline__ unsigned long kmap(struct page * page) {
+	return page_address(page);
+}
+
 #define kunmap(page) do { } while (0)
 
 #endif /* CONFIG_HIGHMEM */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)