Skip to content

Commit 5305d0f

Browse files
robnbehlendorf
authored andcommitted
zfs_context: move empty __init/__exit macros to sys/debug.h
These are kind-of compiler attribute placeholders, so go here with the others for now. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #17861
1 parent 2924382 commit 5305d0f

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
@@ -137,12 +137,6 @@ extern "C" {
137137
typedef off_t loff_t;
138138
#endif
139139

140-
/*
141-
* Kernel modules
142-
*/
143-
#define __init
144-
#define __exit
145-
146140
#endif /* _KERNEL || _STANDALONE */
147141

148142
#ifdef __cplusplus

lib/libspl/include/sys/debug.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,10 @@
6060
#define unlikely(x) __builtin_expect((x), 0)
6161
#endif
6262

63+
/*
64+
* Kernel modules
65+
*/
66+
#define __init
67+
#define __exit
68+
6369
#endif

0 commit comments

Comments
 (0)