[ewg] [PATCH 4/4]: Add kfifo to ibcore for RH4

Erez Zilber erezz at voltaire.com
Mon Jul 30 03:54:58 PDT 2007


Add kfifo to ibcore for RH4. kfifo is taken from upstream code.

Signed-off-by: Erez Zilber <erezz at voltaire.com>

diff --git a/kernel_patches/backport/2.6.9_U2/linux_stuff_to_2_6_17.patch b/kernel_patches/backport/2.6.9_U2/linux_stuff_to_2_6_17.patch
index c437e83..e51c3a7 100644
--- a/kernel_patches/backport/2.6.9_U2/linux_stuff_to_2_6_17.patch
+++ b/kernel_patches/backport/2.6.9_U2/linux_stuff_to_2_6_17.patch
@@ -12,6 +12,13 @@ index 0000000..58cf933
 +++ b/drivers/infiniband/core/netevent.c
 @@ -0,0 +1 @@
 +#include "src/netevent.c"
+diff --git a/drivers/infiniband/core/kfifo.c b/drivers/infiniband/core/kfifo.c
+new file mode 100644
+index 0000000..58cf933
+--- /dev/null
++++ b/drivers/infiniband/core/kfifo.c
+@@ -0,0 +1 @@
++#include "../../kernel/kfifo.c"
 diff --git a/drivers/infiniband/core/Makefile b/drivers/infiniband/core/Makefile
 index 50fb1cd..456bfd0 100644
 --- a/drivers/infiniband/core/Makefile
@@ -20,4 +27,4 @@ index 50fb1cd..456bfd0 100644
  
  ib_uverbs-y :=			uverbs_main.o uverbs_cmd.o uverbs_marshall.o
 +
-+ib_core-y +=			genalloc.o netevent.o
++ib_core-y +=			genalloc.o netevent.o kfifo.o
diff --git a/kernel_patches/backport/2.6.9_U3/linux_stuff_to_2_6_17.patch b/kernel_patches/backport/2.6.9_U3/linux_stuff_to_2_6_17.patch
index c437e83..e51c3a7 100644
--- a/kernel_patches/backport/2.6.9_U3/linux_stuff_to_2_6_17.patch
+++ b/kernel_patches/backport/2.6.9_U3/linux_stuff_to_2_6_17.patch
@@ -12,6 +12,13 @@ index 0000000..58cf933
 +++ b/drivers/infiniband/core/netevent.c
 @@ -0,0 +1 @@
 +#include "src/netevent.c"
+diff --git a/drivers/infiniband/core/kfifo.c b/drivers/infiniband/core/kfifo.c
+new file mode 100644
+index 0000000..58cf933
+--- /dev/null
++++ b/drivers/infiniband/core/kfifo.c
+@@ -0,0 +1 @@
++#include "../../kernel/kfifo.c"
 diff --git a/drivers/infiniband/core/Makefile b/drivers/infiniband/core/Makefile
 index 50fb1cd..456bfd0 100644
 --- a/drivers/infiniband/core/Makefile
@@ -20,4 +27,4 @@ index 50fb1cd..456bfd0 100644
  
  ib_uverbs-y :=			uverbs_main.o uverbs_cmd.o uverbs_marshall.o
 +
-+ib_core-y +=			genalloc.o netevent.o
++ib_core-y +=			genalloc.o netevent.o kfifo.o
diff --git a/kernel_patches/backport/2.6.9_U4/linux_stuff_to_2_6_17.patch b/kernel_patches/backport/2.6.9_U4/linux_stuff_to_2_6_17.patch
index c437e83..e51c3a7 100644
--- a/kernel_patches/backport/2.6.9_U4/linux_stuff_to_2_6_17.patch
+++ b/kernel_patches/backport/2.6.9_U4/linux_stuff_to_2_6_17.patch
@@ -12,6 +12,13 @@ index 0000000..58cf933
 +++ b/drivers/infiniband/core/netevent.c
 @@ -0,0 +1 @@
 +#include "src/netevent.c"
+diff --git a/drivers/infiniband/core/kfifo.c b/drivers/infiniband/core/kfifo.c
+new file mode 100644
+index 0000000..58cf933
+--- /dev/null
++++ b/drivers/infiniband/core/kfifo.c
+@@ -0,0 +1 @@
++#include "../../kernel/kfifo.c"
 diff --git a/drivers/infiniband/core/Makefile b/drivers/infiniband/core/Makefile
 index 50fb1cd..456bfd0 100644
 --- a/drivers/infiniband/core/Makefile
@@ -20,4 +27,4 @@ index 50fb1cd..456bfd0 100644
  
  ib_uverbs-y :=			uverbs_main.o uverbs_cmd.o uverbs_marshall.o
 +
-+ib_core-y +=			genalloc.o netevent.o
++ib_core-y +=			genalloc.o netevent.o kfifo.o
diff --git a/kernel_patches/backport/2.6.9_U5/linux_stuff_to_2_6_17.patch b/kernel_patches/backport/2.6.9_U5/linux_stuff_to_2_6_17.patch
index c437e83..e51c3a7 100644
--- a/kernel_patches/backport/2.6.9_U5/linux_stuff_to_2_6_17.patch
+++ b/kernel_patches/backport/2.6.9_U5/linux_stuff_to_2_6_17.patch
@@ -12,6 +12,13 @@ index 0000000..58cf933
 +++ b/drivers/infiniband/core/netevent.c
 @@ -0,0 +1 @@
 +#include "src/netevent.c"
+diff --git a/drivers/infiniband/core/kfifo.c b/drivers/infiniband/core/kfifo.c
+new file mode 100644
+index 0000000..58cf933
+--- /dev/null
++++ b/drivers/infiniband/core/kfifo.c
+@@ -0,0 +1 @@
++#include "../../kernel/kfifo.c"
 diff --git a/drivers/infiniband/core/Makefile b/drivers/infiniband/core/Makefile
 index 50fb1cd..456bfd0 100644
 --- a/drivers/infiniband/core/Makefile
@@ -20,4 +27,4 @@ index 50fb1cd..456bfd0 100644
  
  ib_uverbs-y :=			uverbs_main.o uverbs_cmd.o uverbs_marshall.o
 +
-+ib_core-y +=			genalloc.o netevent.o
++ib_core-y +=			genalloc.o netevent.o kfifo.o




More information about the ewg mailing list