diff --git a/lnet/include/libcfs/linux/portals_compat25.h b/lnet/include/libcfs/linux/portals_compat25.h
index e8152bc477d8330770ad2909477954ae019338b9..2d6b782e0ab543cff6944df5f6cb3e40b998c88c 100644
--- a/lnet/include/libcfs/linux/portals_compat25.h
+++ b/lnet/include/libcfs/linux/portals_compat25.h
@@ -119,7 +119,7 @@ typedef unsigned long cpumask_t;
 #define LL_PROC_PROTO(name)                                             \
         name(cfs_sysctl_table_t *table, int write, struct file *filp,   \
              void __user *buffer, size_t *lenp, loff_t *ppos)
-#define DECLARE_LL_PROC_PPOS
+#define DECLARE_LL_PROC_PPOS_DECL
 #endif
 
 #endif /* _PORTALS_COMPAT_H */
diff --git a/lnet/libcfs/linux/linux-proc.c b/lnet/libcfs/linux/linux-proc.c
index 55b6809aa7cd06afdcc85b1b897af21e831da0c7..92cc8fe279a96e319520f210e5b3acb22b8e0eff 100644
--- a/lnet/libcfs/linux/linux-proc.c
+++ b/lnet/libcfs/linux/linux-proc.c
@@ -103,7 +103,7 @@ proc_call_handler(void *data, int write,
 static int                                              \
 LL_PROC_PROTO(name)                                     \
 {                                                       \
-        DECLARE_LL_PROC_PPOS;                           \
+        DECLARE_LL_PROC_PPOS_DECL;                      \
                                                         \
         return proc_call_handler(table->data, write,    \
                                  ppos, buffer, lenp,    \