2009-02-25 21:20:40 +00:00
|
|
|
#ifndef _SPL_KALLSYMS_COMPAT_H
|
|
|
|
#define _SPL_KALLSYMS_COMPAT_H
|
|
|
|
|
2009-05-20 17:08:37 +00:00
|
|
|
#define SYMBOL_POISON ((void*)0xabcddcba)
|
|
|
|
|
2009-02-25 21:20:40 +00:00
|
|
|
#ifdef HAVE_KALLSYMS_LOOKUP_NAME
|
|
|
|
|
|
|
|
#include <linux/kallsyms.h>
|
|
|
|
#define spl_kallsyms_lookup_name(name) kallsyms_lookup_name(name)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
typedef unsigned long (*kallsyms_lookup_name_t)(const char *);
|
|
|
|
extern kallsyms_lookup_name_t spl_kallsyms_lookup_name_fn;
|
|
|
|
#define spl_kallsyms_lookup_name(name) spl_kallsyms_lookup_name_fn(name)
|
|
|
|
|
|
|
|
#endif /* HAVE_KALLSYMS_LOOKUP_NAME */
|
|
|
|
|
|
|
|
#endif /* _SPL_KALLSYMS_COMPAT_H */
|