[openib-general] patch trouble
Bryan Green
bgreen at nas.nasa.gov
Sat Sep 16 00:29:15 PDT 2006
Hello,
Many of the patches in subversion fail to have an effect when I apply them to a kernel,
because they create headers in 'drivers/infiniband/include' which depend on being included
before the like-named headers in the toplevel 'include'. Is there a step I am missing to
make the headers in 'drivers/infiniband/include' get chosen for inclusion first?
Here is an example of such a patch that creates a header file that never gets included:
https://openib.org/svn/gen2/branches/backport/2.6.12/gfp_6138_to_2_6_13.patch
Index: linux-2.6.9/drivers/infiniband/include/linux/types.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6.9/drivers/infiniband/include/linux/types.h 2006-04-02
14:40:14.000000000 +0200
@@ -0,0 +1,10 @@
+#ifndef LINUX_TYPES_BACKPORT_H
+#define LINUX_TYPES_BACKPORT_H
+
+#include_next <linux/types.h>
+
+#ifdef __KERNEL__
+typedef unsigned int gfp_t;
+#endif
+
+#endif
More information about the general
mailing list