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
This commit is contained in:
Rob Norris 2025-10-19 14:44:14 +11:00 committed by Brian Behlendorf
parent 292438295d
commit 5305d0f8b9
2 changed files with 6 additions and 6 deletions

View File

@ -137,12 +137,6 @@ extern "C" {
typedef off_t loff_t; typedef off_t loff_t;
#endif #endif
/*
* Kernel modules
*/
#define __init
#define __exit
#endif /* _KERNEL || _STANDALONE */ #endif /* _KERNEL || _STANDALONE */
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -60,4 +60,10 @@
#define unlikely(x) __builtin_expect((x), 0) #define unlikely(x) __builtin_expect((x), 0)
#endif #endif
/*
* Kernel modules
*/
#define __init
#define __exit
#endif #endif