#define CFS_SYSFS_MODULE_PARM 0 /* no sysfs access to module parameters */
-#define LASSERT_SPIN_LOCKED(lock) do {} while(0)
-#define LASSERT_SEM_LOCKED(sem) LASSERT(down_trylock(sem) != 0)
/* winnt panic */
void libcfs_panic(char *msg);
-#define LIBCFS_PANIC(msg) libcfs_panic(msg)
+#define panic(msg) libcfs_panic(msg)
void libcfs_register_panic_notifier();
void libcfs_unregister_panic_notifier();
#define cfs_work_struct_t WORK_QUEUE_ITEM
-#define cfs_prepare_work(tq, routine, contex)
#define cfs_schedule_work(tq)
#define cfs_get_work_data(type,field,data) (data)
#define PORTAL_SYMBOL_REGISTER(x) cfs_symbol_register(#x, &x)
#define PORTAL_SYMBOL_UNREGISTER(x) cfs_symbol_unregister(#x)
-#define PORTAL_SYMBOL_GET(x) (cfs_symbol_get(#x))
-#define PORTAL_SYMBOL_PUT(x) cfs_symbol_put(#x)
+#define symbol_get(x) (cfs_symbol_get(#x))
+#define symbol_put(x) cfs_symbol_put(#x)
-#define PORTAL_MODULE_USE do{}while(0)
-#define PORTAL_MODULE_UNUSE do{}while(0)
+#define try_module_get(THIS_MODULE) do{}while(0)
+#define module_put(THIS_MODULE) do{}while(0)
#define printk DbgPrint
#define ptintf DbgPrint
#define cfs_assert _ASSERT
#ifndef get_cpu
-#define cfs_get_cpu() cfs_smp_processor_id()
-#define cfs_put_cpu() do { } while (0)
+#define get_cpu() smp_processor_id()
+#define put_cpu() do { } while (0)
#else
-#define cfs_get_cpu() get_cpu()
-#define cfs_put_cpu() put_cpu()
#endif
#endif /* End of !__KERNEL__ */