#ifndef _LPROCFS_SNMP_H
#define _LPROCFS_SNMP_H
-#include <lustre/lustre_idl.h>
#if defined(__linux__)
#include <linux/lprocfs_status.h>
#elif defined(__APPLE__)
#else
#error Unsupported operating system.
#endif
+#include <lustre/lustre_idl.h>
#undef LPROCFS
#if (defined(__KERNEL__) && defined(CONFIG_PROC_FS))
if (type & LPROCFS_GET_NUM_CPU)
rc = num_possible_cpus();
if (type & LPROCFS_GET_SMP_ID) {
- stats->ls_flags &= LPROCFS_STATS_GET_SMP_ID;
+ stats->ls_flags |= LPROCFS_STATS_GET_SMP_ID;
rc = cfs_get_cpu();
}
}