]> git.openfabrics.org - ~emulex/for-vlad/compat.git/commitdiff
Rename compat.h to compat-2.6.h
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 11 Dec 2009 06:20:43 +0000 (22:20 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 11 Dec 2009 06:20:43 +0000 (22:20 -0800)
As include/linux/compat.h is already taken upstream.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Makefile
include/linux/compat-2.6.h [new file with mode: 0644]
include/linux/compat.h [deleted file]

index 0433a14d67a42717135928d1ed600b628e85d7de..0d4bd66d6e302646c73904a978bdd24207a8bd0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ ifneq ($(wildcard $(KLIB_BUILD)/Makefile),)
 COMPAT_LATEST_VERSION = 32
 KERNEL_SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p')
 COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(KERNEL_SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done)
-$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y))
+$(foreach ver,$(COMPAT_VERSIONS),$(eval export CONFIG_COMPAT_KERNEL_$(ver)=y))
 endif
 
 obj-y += compat/
@@ -23,7 +23,7 @@ obj-y += compat/
 # This hack lets us put our include path first than the kernel's
 # when building our compat modules. Your own makefile would look
 # the same.
-NOSTDINC_FLAGS := -I$(M)/include/ -include $(M)/include/linux/compat.h $(CFLAGS)
+NOSTDINC_FLAGS := -I$(M)/include/ -include $(M)/include/linux/compat-2.6.h $(CFLAGS)
 
 modules:
        $(MAKE) -C $(KLIB_BUILD) M=$(PWD) modules
@@ -35,4 +35,4 @@ clean:
        $(MAKE) -C $(KLIB_BUILD) M=$(PWD) clean
 all: modules
 
-clean-files := Module.symvers modules.order Module.markers
+clean-files := Module.symvers modules.order Module.markers compat/modules.order
diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h
new file mode 100644 (file)
index 0000000..bea00c9
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef LINUX_26_COMPAT_H
+#define LINUX_26_COMPAT_H
+
+#include <linux/autoconf.h>
+#include <linux/version.h>
+#include <linux/compat_autoconf.h>
+
+/*
+ * Each compat file represents compatibility code for new kernel
+ * code introduced for *that* kernel revision.
+ */
+
+#include <linux/compat-2.6.22.h>
+#include <linux/compat-2.6.23.h>
+#include <linux/compat-2.6.24.h>
+#include <linux/compat-2.6.25.h>
+#include <linux/compat-2.6.26.h>
+#include <linux/compat-2.6.27.h>
+#include <linux/compat-2.6.28.h>
+#include <linux/compat-2.6.29.h>
+#include <linux/compat-2.6.30.h>
+#include <linux/compat-2.6.31.h>
+#include <linux/compat-2.6.32.h>
+#include <linux/compat-2.6.33.h>
+
+#endif /* LINUX_26_COMPAT_H */
diff --git a/include/linux/compat.h b/include/linux/compat.h
deleted file mode 100644 (file)
index bea00c9..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef LINUX_26_COMPAT_H
-#define LINUX_26_COMPAT_H
-
-#include <linux/autoconf.h>
-#include <linux/version.h>
-#include <linux/compat_autoconf.h>
-
-/*
- * Each compat file represents compatibility code for new kernel
- * code introduced for *that* kernel revision.
- */
-
-#include <linux/compat-2.6.22.h>
-#include <linux/compat-2.6.23.h>
-#include <linux/compat-2.6.24.h>
-#include <linux/compat-2.6.25.h>
-#include <linux/compat-2.6.26.h>
-#include <linux/compat-2.6.27.h>
-#include <linux/compat-2.6.28.h>
-#include <linux/compat-2.6.29.h>
-#include <linux/compat-2.6.30.h>
-#include <linux/compat-2.6.31.h>
-#include <linux/compat-2.6.32.h>
-#include <linux/compat-2.6.33.h>
-
-#endif /* LINUX_26_COMPAT_H */