diff options
author | Ingo Molnar <mingo@kernel.org> | 2024-04-10 07:04:04 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-04-10 07:04:04 +0200 |
commit | a40d2525eaa6ba40ebd39ea2ed9598e13092a7dc (patch) | |
tree | d5d5515c98d6163e14d56dfe3272cb3b4e9c7d71 /tools/include/linux/panic.h | |
parent | 5ce344beaca688f4cdea07045e0b8f03dc537e74 (diff) | |
parent | 2c71fdf02a95b3dd425b42f28fd47fb2b1d22702 (diff) |
Merge branch 'linus' into x86/urgent, to pick up dependent commits
Prepare to fix aspects of the new BHI code.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/include/linux/panic.h')
-rw-r--r-- | tools/include/linux/panic.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/include/linux/panic.h b/tools/include/linux/panic.h new file mode 100644 index 000000000000..9c8f17a41ce8 --- /dev/null +++ b/tools/include/linux/panic.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _TOOLS_LINUX_PANIC_H +#define _TOOLS_LINUX_PANIC_H + +#include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> + +static inline void panic(const char *fmt, ...) +{ + va_list argp; + + va_start(argp, fmt); + vfprintf(stderr, fmt, argp); + va_end(argp); + exit(-1); +} + +#endif |