When CONFIG_SYSCTL is not defined in the kernel config, a couple of
variables are left unused, yet still defined.
i=Dmitry Zogin
i=Andrew Perepechko
#include <asm/div64.h>
#include "tracefile.h"
+#ifdef CONFIG_SYSCTL
static cfs_sysctl_table_header_t *lnet_table_header = NULL;
+#endif
extern char lnet_upcall[1024];
/**
* The path of debug log dump upcall script.
{0}
};
+#ifdef CONFIG_SYSCTL
static cfs_sysctl_table_t top_table[] = {
{
.ctl_name = CTL_LNET,
int insert_proc(void)
{
-#ifdef CONFIG_SYSCTL
if (lnet_table_header == NULL)
lnet_table_header = cfs_register_sysctl_table(top_table, 0);
#endif
#include <obd_support.h>
#include <lprocfs_status.h>
+#ifdef CONFIG_SYSCTL
cfs_sysctl_table_header_t *obd_table_header = NULL;
+#endif
#ifndef HAVE_SYSCTL_UNNUMBERED
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,
},
{0}
};
+#endif
void obd_sysctl_init (void)
{