staging/lustre: remove INIT_STRATEGY
authorPeng Tao <bergwolf@gmail.com>
Tue, 19 Nov 2013 14:38:47 +0000 (22:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2013 18:44:56 +0000 (10:44 -0800)
legacy code used to support kernel where struct ctl_table
has strategy member.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/kp30.h
drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c

index ba7854159d7db9895193906962b0cb6357a563e7..3a883f82e64fcaff503d988035880a7a7ceec333 100644 (file)
@@ -204,8 +204,4 @@ extern int  lwt_snapshot (cfs_cycles_t *now, int *ncpu, int *total_size,
  */
 # define LPPID "%d"
 
-/* compat macroses */
-
-#define INIT_STRATEGY(a)
-
 #endif
index f2bb8672a4ffe15a7c6831db8ff5a159a76facc8..ef0ab106496f6e11e3195b58f5fb4d6796269989 100644 (file)
@@ -452,7 +452,6 @@ static ctl_table_t lnet_table[] = {
                .maxlen   = sizeof(int),
                .mode     = 0444,
                .proc_handler = &proc_dointvec,
-               INIT_STRATEGY(&sysctl_intvec)
        },
        {
                .procname = "catastrophe",
@@ -460,7 +459,6 @@ static ctl_table_t lnet_table[] = {
                .maxlen   = sizeof(int),
                .mode     = 0444,
                .proc_handler = &proc_dointvec,
-               INIT_STRATEGY(&sysctl_intvec)
        },
        {
                .procname = "panic_on_lbug",
@@ -468,7 +466,6 @@ static ctl_table_t lnet_table[] = {
                .maxlen   = sizeof(int),
                .mode     = 0644,
                .proc_handler = &proc_dointvec,
-               INIT_STRATEGY(&sysctl_intvec)
        },
        {
                .procname = "dump_kernel",