Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 30b61da180286643bea68b09b092744346011801 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Andrea Adami <andrea.adami@gmail.com> |
| 3 | Date: Tue, 17 Apr 2018 11:38:42 +0200 |
| 4 | Subject: [PATCH] kexec.c: replace missing BLKGETSIZE64 |
| 5 | |
| 6 | Fix |
| 7 | |
| 8 | kexec.c: In function 'slurp_file_generic': |
| 9 | kexec.c:564:19: error: 'BLKGETSIZE64' undeclared |
| 10 | |
| 11 | Upstream-Status: Inappropriate [klibc specific] |
| 12 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> |
| 13 | |
| 14 | --- |
| 15 | kexec/kexec.c | 4 ++++ |
| 16 | 1 file changed, 4 insertions(+) |
| 17 | |
| 18 | diff --git a/kexec/kexec.c b/kexec/kexec.c |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 19 | index 0764e85..157c577 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | --- a/kexec/kexec.c |
| 21 | +++ b/kexec/kexec.c |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 22 | @@ -55,6 +55,10 @@ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | #define KEXEC_LOADED_PATH "/sys/kernel/kexec_loaded" |
| 24 | #define KEXEC_CRASH_LOADED_PATH "/sys/kernel/kexec_crash_loaded" |
| 25 | |
| 26 | +#ifndef BLKGETSIZE64 |
| 27 | +#define BLKGETSIZE64 _IOR(0x12,114,size_t) |
| 28 | +#endif |
| 29 | + |
| 30 | unsigned long long mem_min = 0; |
| 31 | unsigned long long mem_max = ULONG_MAX; |
| 32 | static unsigned long kexec_flags = 0; |