Whamcloud - gitweb
LU-13783 libcfs: support removal of kernel_setsockopt()
[fs/lustre-release.git] / libcfs / libcfs / libcfs_mem.c
index 757cc19..15542bb 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <linux/workqueue.h>
 #include <libcfs/libcfs.h>
+#include <lustre_compat.h>
 
 struct cfs_var_array {
        unsigned int            va_count;       /* # of buffers */
@@ -177,10 +178,6 @@ EXPORT_SYMBOL(cfs_array_alloc);
  * minimum changes needed to work on older kernels too.
  */
 
-#ifndef raw_cpu_ptr
-#define raw_cpu_ptr(p) __this_cpu_ptr(p)
-#endif
-
 #ifndef llist_for_each_safe
 #define llist_for_each_safe(pos, n, node)                       \
         for ((pos) = (node); (pos) && ((n) = (pos)->next, true); (pos) = (n))