summaryrefslogtreecommitdiffstats
path: root/include/linux/kallsyms_compat.h
blob: 6cd0a18deb7ea2ef3831a63fc2b3c3cb36d16b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _SPL_KALLSYMS_COMPAT_H
#define _SPL_KALLSYMS_COMPAT_H

#define SYMBOL_POISON ((void*)0xabcddcba)

#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 */