staging: lustre: remove unneeded DECLARE_LL_PROC_PPOS_DECL macro
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 06:05:14 +0000 (23:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 06:05:14 +0000 (23:05 -0700)
It did nothing, so remove it.

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/obdclass/linux/linux-sysctl.c

index b24bc6b..1069c33 100644 (file)
@@ -71,8 +71,6 @@ typedef struct ctl_table_header               ctl_table_header_t;
 static int                                           \
 LL_PROC_PROTO(name)                                 \
 {                                                     \
-       DECLARE_LL_PROC_PPOS_DECL;                    \
-                                                       \
        return proc_call_handler(table->data, write,    \
                                 ppos, buffer, lenp,    \
                                 __##name);          \
index c6fa7ca..eae12a6 100644 (file)
@@ -88,7 +88,6 @@
 #define LL_PROC_PROTO(name)                                         \
        name(ctl_table_t *table, int write,                   \
             void __user *buffer, size_t *lenp, loff_t *ppos)
-#define DECLARE_LL_PROC_PPOS_DECL
 
 /* helper for sysctl handlers */
 int proc_call_handler(void *data, int write,
index 414a991..640cdc4 100644 (file)
@@ -151,8 +151,6 @@ int LL_PROC_PROTO(proc_lnet_routes)
        int             ver;
        int             off;
 
-       DECLARE_LL_PROC_PPOS_DECL;
-
        CLASSERT(sizeof(loff_t) >= 4);
 
        off = LNET_PROC_HOFF_GET(*ppos);
@@ -278,8 +276,6 @@ int LL_PROC_PROTO(proc_lnet_routers)
        int     ver;
        int     off;
 
-       DECLARE_LL_PROC_PPOS_DECL;
-
        off = LNET_PROC_HOFF_GET(*ppos);
        ver = LNET_PROC_VER_GET(*ppos);
 
@@ -638,8 +634,6 @@ int LL_PROC_PROTO(proc_lnet_nis)
        char      *s;
        int     len;
 
-       DECLARE_LL_PROC_PPOS_DECL;
-
        LASSERT(!write);
 
        if (*lenp == 0)
index 7bad930..70efd6b 100644 (file)
@@ -93,7 +93,6 @@ int LL_PROC_PROTO(proc_memory_alloc)
 {
        char buf[22];
        int len;
-       DECLARE_LL_PROC_PPOS_DECL;
 
        if (!*lenp || (*ppos && !write)) {
                *lenp = 0;
@@ -117,7 +116,6 @@ int LL_PROC_PROTO(proc_pages_alloc)
 {
        char buf[22];
        int len;
-       DECLARE_LL_PROC_PPOS_DECL;
 
        if (!*lenp || (*ppos && !write)) {
                *lenp = 0;
@@ -141,7 +139,6 @@ int LL_PROC_PROTO(proc_mem_max)
 {
        char buf[22];
        int len;
-       DECLARE_LL_PROC_PPOS_DECL;
 
        if (!*lenp || (*ppos && !write)) {
                *lenp = 0;
@@ -165,7 +162,6 @@ int LL_PROC_PROTO(proc_pages_max)
 {
        char buf[22];
        int len;
-       DECLARE_LL_PROC_PPOS_DECL;
 
        if (!*lenp || (*ppos && !write)) {
                *lenp = 0;
@@ -188,7 +184,6 @@ int LL_PROC_PROTO(proc_pages_max)
 int LL_PROC_PROTO(proc_max_dirty_pages_in_mb)
 {
        int rc = 0;
-       DECLARE_LL_PROC_PPOS_DECL;
 
        if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
                *lenp = 0;
@@ -230,7 +225,6 @@ int LL_PROC_PROTO(proc_max_dirty_pages_in_mb)
 int LL_PROC_PROTO(proc_alloc_fail_rate)
 {
        int rc    = 0;
-       DECLARE_LL_PROC_PPOS_DECL;
 
        if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
                *lenp = 0;