Skip to content

Commit 788da60

Browse files
committed
zfs_context: move empty __init/__exit macros to zfs_context_os
These are actually implementable in userspace, and may belong elsewhere when/if that happens. This is convenient for the moment. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
1 parent e348288 commit 788da60

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/sys/zfs_context.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ extern "C" {
134134
typedef off_t loff_t;
135135
#endif
136136

137-
/*
138-
* Kernel modules
139-
*/
140-
#define __init
141-
#define __exit
142-
143137
#endif /* _KERNEL || _STANDALONE */
144138

145139
#ifdef __cplusplus

lib/libspl/include/sys/zfs_context_os.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,10 @@ extern int handle_tunable_option(const char *, boolean_t);
5353
extern void kernel_init(int mode);
5454
extern void kernel_fini(void);
5555

56+
/*
57+
* Kernel modules
58+
*/
59+
#define __init
60+
#define __exit
61+
5662
#endif

0 commit comments

Comments
 (0)