X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Flinux%2Flinux-sysctl.c;h=dc3b1fbca6f5af419ab71b4df6e7fb62a21f5224;hp=4f10cdb618ec5b93525e102d924d32ab3b3c305b;hb=6d4acf1be59d087cec2fd1d4384b5a725374dfbc;hpb=ecea0c8776ea2d085e35198d13ea41c4fbf49a8e diff --git a/lustre/obdclass/linux/linux-sysctl.c b/lustre/obdclass/linux/linux-sysctl.c index 4f10cdb..dc3b1fb 100644 --- a/lustre/obdclass/linux/linux-sysctl.c +++ b/lustre/obdclass/linux/linux-sysctl.c @@ -54,7 +54,9 @@ #include #include +#ifdef CONFIG_SYSCTL cfs_sysctl_table_header_t *obd_table_header = NULL; +#endif #ifndef HAVE_SYSCTL_UNNUMBERED @@ -322,6 +324,7 @@ int LL_PROC_PROTO(proc_at_history) return ll_proc_dointvec(table, write, filp, buffer, lenp, ppos); } +#ifdef CONFIG_SYSCTL static cfs_sysctl_table_t obd_table[] = { { .ctl_name = OBD_FAIL_LOC, @@ -483,6 +486,7 @@ static cfs_sysctl_table_t parent_table[] = { }, {0} }; +#endif void obd_sysctl_init (void) {