summaryrefslogtreecommitdiffstats
path: root/patches/0015-crash_dump-always-include-UAPI-header.patch
blob: 2fc6604250d2f5d39fed1bdfbaf43008ba280e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 12f4079fa258c80d77d3fc4bc887c87061d1103e Mon Sep 17 00:00:00 2001
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: Sun, 24 May 2020 19:14:25 -0600
Subject: [PATCH 15/32] crash_dump: always include UAPI header

The uapi header has important constants, regardless of whether or not
CONFIG_CRASH_DUMP is enabled, so always include it.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
 include/linux/crash_dump.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
index ade593b8..a313492b 100644
--- a/include/linux/crash_dump.h
+++ b/include/linux/crash_dump.h
@@ -1,11 +1,11 @@
 #ifndef LINUX_CRASH_DUMP_H
 #define LINUX_CRASH_DUMP_H
 
+#include <uapi/linux/vmcore.h>
 #ifdef CONFIG_CRASH_DUMP
 #include <linux/kexec.h>
 #include <linux/proc_fs.h>
 #include <linux/elf.h>
-#include <uapi/linux/vmcore.h>
 
 #define ELFCORE_ADDR_MAX	(-1ULL)
 #define ELFCORE_ADDR_ERR	(-2ULL)
-- 
2.27.0