We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8ed16 commit e0f5a8eCopy full SHA for e0f5a8e
tools/include/linux/kernel.h
@@ -8,6 +8,7 @@
8
#include <linux/build_bug.h>
9
#include <linux/compiler.h>
10
#include <linux/math.h>
11
+#include <linux/panic.h>
12
#include <endian.h>
13
#include <byteswap.h>
14
tools/include/linux/panic.h
@@ -0,0 +1,19 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
2
+#ifndef _TOOLS_LINUX_PANIC_H
3
+#define _TOOLS_LINUX_PANIC_H
4
+
5
+#include <stdarg.h>
6
+#include <stdio.h>
7
+#include <stdlib.h>
+static inline void panic(const char *fmt, ...)
+{
+ va_list argp;
+ va_start(argp, fmt);
+ vfprintf(stderr, fmt, argp);
15
+ va_end(argp);
16
+ exit(-1);
17
+}
18
19
+#endif
0 commit comments