Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:24:57 UTC 2021

Modified Files:
        src/sys/external/bsd/common/include/linux: kernel.h

Log Message:
might_sleep, add_taint


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/external/bsd/common/include/linux/kernel.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/common/include/linux/kernel.h
diff -u src/sys/external/bsd/common/include/linux/kernel.h:1.34 src/sys/external/bsd/common/include/linux/kernel.h:1.35
--- src/sys/external/bsd/common/include/linux/kernel.h:1.34	Sun Dec 19 01:18:17 2021
+++ src/sys/external/bsd/common/include/linux/kernel.h	Sun Dec 19 01:24:57 2021
@@ -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 @@ u64_to_user_ptr(uint64_t addr)
 	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_ */

Reply via email to