[openfabrics-ewg] [PATCH] ehca backport linux_mm_to_2_6_9.patch

Hoang-Nam Nguyen hnguyen at de.ibm.com
Mon Sep 18 09:43:18 PDT 2006


Hi,
here is backport of mm for kernel 2.6.9. It defines remap_pfn_range()
based on remap_page_range().
I did commit it into contrib/ibm/gen2/backport/2.6.9.
Thanks!
Nam Nguyen


Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
---


 mm.h |    8 ++++++++
 1 files changed, 8 insertions(+)


diff -Nurp linux-2.6.9_orig/drivers/infiniband/include/linux/mm.h linux-2.6.9_work/drivers/infiniband/include/linux/mm.h
--- linux-2.6.9_orig/drivers/infiniband/include/linux/mm.h 1969-12-31 16:00:00.000000000 -0800
+++ linux-2.6.9_work/drivers/infiniband/include/linux/mm.h 2006-09-18 04:43:45.835989360 -0700
@@ -0,0 +1,8 @@
+#ifndef LINUX_MM_BACKPORT_269_H
+#define LINUX_MM_BACKPORT_269_H
+
+#include_next <linux/mm.h>
+
+#define remap_pfn_range(a, b, c, d, e) remap_page_range(a, b, (c) << PAGE_SHIFT, d, e)
+
+#endif




More information about the ewg mailing list