mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-10 20:36:21 +03:00
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:
parent
292438295d
commit
5305d0f8b9
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user