git: 6188ca6a9d72 - main - zfs: add workaround to unbreak kernel compilation on MacOS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Aug 2025 13:21:33 UTC
The branch main has been updated by mm:
URL: https://cgit.FreeBSD.org/src/commit/?id=6188ca6a9d72af9be987e1aedc345210f834ad80
commit 6188ca6a9d72af9be987e1aedc345210f834ad80
Author: Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2025-08-11 21:16:24 +0000
Commit: Martin Matuska <mm@FreeBSD.org>
CommitDate: 2025-08-12 13:21:08 +0000
zfs: add workaround to unbreak kernel compilation on MacOS
This needs to be resolved later with the correct macros or
a different approach in discussion with Rob Norris (OpenZFS).
---
sys/contrib/openzfs/lib/libspl/tunables.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/contrib/openzfs/lib/libspl/tunables.c b/sys/contrib/openzfs/lib/libspl/tunables.c
index 67dc9710dee8..2e9535f1fbf9 100644
--- a/sys/contrib/openzfs/lib/libspl/tunables.c
+++ b/sys/contrib/openzfs/lib/libspl/tunables.c
@@ -74,7 +74,9 @@ extern const zfs_tunable_t *__stop_zfs_tunables;
* any NULL pointers.
*/
static void *__zfs_tunable__placeholder
+#if !defined(__APPLE__)
__attribute__((__section__("zfs_tunables")))
+#endif
__attribute__((__used__)) = NULL;
/*