]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 b24bc6b18839a4a38b58728a150fe7cad7324a24..1069c33433e9ea72a3909f286cf08f2ea5be4729 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 c6fa7ca4c87b6304c8e9595039cf9bc71d7c4725..eae12a6baed02701d8672841bf4b4a2ed8651e5f 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 414a9919b9b14afca3641c520f3de1c3180fafc5..640cdc45975ef743cbaef2cec05e7e676f213fcd 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 7bad930edbcf9f4d1ef0824beae3970094f054aa..70efd6b1b6e92b1c6df897d83fa84f92b7f9a7d7 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;