libspl: move compiler attribute macros from zfs_context.h

sys/debug.h is not really the right place for them, but we already have
some there for libspl, so it is at least convenient.

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:41:38 +11:00
committed by Brian Behlendorf
parent a43edeefaf
commit 292438295d
2 changed files with 18 additions and 8 deletions
-8
View File
@@ -133,14 +133,6 @@ extern "C" {
#include <sys/zfs_context_os.h>
/*
* Stack
*/
#define noinline __attribute__((noinline))
#define likely(x) __builtin_expect((x), 1)
#define unlikely(x) __builtin_expect((x), 0)
#ifdef __FreeBSD__
typedef off_t loff_t;
#endif