Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/linux might_sleep, add_taint
details: https://anonhg.NetBSD.org/src/rev/008154cf6d45
branches: trunk
changeset: 1027983:008154cf6d45
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:24:57 2021 +0000
description:
might_sleep, add_taint
diffstat:
sys/external/bsd/common/include/linux/kernel.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r ddf14075b027 -r 008154cf6d45 sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h Sun Dec 19 01:24:49 2021 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h Sun Dec 19 01:24:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.34 2021/12/19 01:18:17 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.35 2021/12/19 01:24:57 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -80,6 +80,8 @@
#define likely(X) __predict_true(X)
#define unlikely(X) __predict_false(X)
+#define might_sleep ASSERT_SLEEPABLE
+
/*
* XXX Linux kludge to work around GCC uninitialized variable warning.
* Linux does `x = x', which is bollocks.
@@ -259,4 +261,14 @@
return (void __user *)(uintptr_t)addr;
}
+#define TAINT_MACHINE_CHECK 0
+#define TAINT_WARN 1
+
+#define LOCKDEP_STILL_OK 0
+
+static inline void
+add_taint(unsigned taint, int lockdep)
+{
+}
+
#endif /* _LINUX_KERNEL_H_ */
Home |
Main Index |
Thread Index |
Old Index