summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/include/linux/kernel.h
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-12-19 01:41:21 +0000
committerriastradh <riastradh@NetBSD.org>2021-12-19 01:41:21 +0000
commitda2bc00a8b2cf7d4e2cc38fcdfd1b22ff1518ccf (patch)
tree231d32f28281200ba4e5a54052e431671af5f0a5 /sys/external/bsd/common/include/linux/kernel.h
parente76a2e5ef463a0c168f110125f3e935a65f7bf7a (diff)
Move attributes, barrier(), and likely/unlikely to linux/compiler.h.
Diffstat (limited to 'sys/external/bsd/common/include/linux/kernel.h')
-rw-r--r--sys/external/bsd/common/include/linux/kernel.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/external/bsd/common/include/linux/kernel.h b/sys/external/bsd/common/include/linux/kernel.h
index 5d99898a79d..08972227a61 100644
--- a/sys/external/bsd/common/include/linux/kernel.h
+++ b/sys/external/bsd/common/include/linux/kernel.h
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.37 2021/12/19 01:40:20 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.38 2021/12/19 01:41:21 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -65,22 +65,6 @@
#define IS_ENABLED(option) (option)
#define IS_REACHABLE(option) (option)
-#define __printf __printflike
-#define __user
-#if __GNUC_PREREQ__(4,0) /* not sure when but this will work */
-#define __must_check __attribute__((warn_unused_result))
-#else
-#define __must_check /* nothing */
-#endif
-#define __always_unused __unused
-#define __maybe_unused __unused
-#define noinline __noinline
-#define __deprecated /* nothing */
-
-#define barrier() __insn_barrier()
-#define likely(X) __predict_true(X)
-#define unlikely(X) __predict_false(X)
-
#define might_sleep ASSERT_SLEEPABLE
#define DEFINE_STATIC_KEY_FALSE(N) bool N __unused = false