From f13dc9200c0e47dbd09ff96d1dccc83d451695cb Mon Sep 17 00:00:00 2001
From: johann <johann>
Date: Fri, 14 Nov 2008 23:28:06 +0000
Subject: [PATCH] Branch b1_8-bld10 b=15878 i=johann i=tianzy

original patch from Tianzy.
fix build issue introduced by the patch from bug 15878.
---
 lnet/include/libcfs/libcfs.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lnet/include/libcfs/libcfs.h b/lnet/include/libcfs/libcfs.h
index 8e19a39e0d..564edd6357 100644
--- a/lnet/include/libcfs/libcfs.h
+++ b/lnet/include/libcfs/libcfs.h
@@ -342,6 +342,16 @@ do {                                                                    \
 
 #include <libcfs/list.h>
 
+/* for_each_possible_cpu is defined newly, the former is
+ * for_each_cpu(eg. sles9 and sles10) b=15878 */
+#ifndef for_each_possible_cpu
+# ifdef for_each_cpu
+#  define for_each_possible_cpu(cpu) for_each_cpu(cpu)
+# else
+#  error for_each_possible_cpu is not supported by kernel!
+# endif
+#endif
+
 struct libcfs_ioctl_data;                       /* forward ref */
 
 struct libcfs_ioctl_handler {
-- 
GitLab