staging: lustre: remove LL_PROC_PROTO macro
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 01:00:44 +0000 (18:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 01:00:44 +0000 (18:00 -0700)
Spell out what is happening with the proc file functions, it helps to
unwind the call chain mess here.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: hpdd-discuss <hpdd-discuss@lists.01.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/linux-prim.h
drivers/staging/lustre/include/linux/libcfs/linux/portals_compat25.h
drivers/staging/lustre/lnet/lnet/router_proc.c
drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c
drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c

index 8125980..43ce3a0 100644 (file)
 /*
  * Sysctl register
  */
-#define DECLARE_PROC_HANDLER(name)                   \
-static int                                           \
-LL_PROC_PROTO(name)                                 \
-{                                                     \
-       return proc_call_handler(table->data, write,    \
-                                ppos, buffer, lenp,    \
-                                __##name);          \
+#define DECLARE_PROC_HANDLER(name)                                     \
+static int name(struct ctl_table *table, int write,                    \
+               void __user *buffer, size_t *lenp, loff_t *ppos)        \
+{                                                                      \
+       return proc_call_handler(table->data, write,                    \
+                                ppos, buffer, lenp,                    \
+                                __##name);                             \
 }
 
 #endif
index 192ad08..4fe0720 100644 (file)
 
 #define ll_proc_dolongvec(table, write, filp, buffer, lenp, ppos)      \
        proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
-#define ll_proc_dostring(table, write, filp, buffer, lenp, ppos)       \
-       proc_dostring(table, write, buffer, lenp, ppos);
-#define LL_PROC_PROTO(name)                                         \
-       name(struct ctl_table *table, int write,                      \
-            void __user *buffer, size_t *lenp, loff_t *ppos)
 
 /* helper for sysctl handlers */
 int proc_call_handler(void *data, int write,