mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 17:13:00 +00:00
Add riscv64 support Rework klibc support patches Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
31 lines
837 B
Diff
31 lines
837 B
Diff
From 30b61da180286643bea68b09b092744346011801 Mon Sep 17 00:00:00 2001
|
|
From: Andrea Adami <andrea.adami@gmail.com>
|
|
Date: Tue, 17 Apr 2018 11:38:42 +0200
|
|
Subject: [PATCH] kexec.c: replace missing BLKGETSIZE64
|
|
|
|
Fix
|
|
|
|
kexec.c: In function 'slurp_file_generic':
|
|
kexec.c:564:19: error: 'BLKGETSIZE64' undeclared
|
|
|
|
Upstream-Status: Inappropriate [klibc specific]
|
|
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
|
|
|
|
---
|
|
kexec/kexec.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/kexec/kexec.c
|
|
+++ b/kexec/kexec.c
|
|
@@ -61,6 +61,10 @@
|
|
#define KEXEC_LOADED_PATH "/sys/kernel/kexec_loaded"
|
|
#define KEXEC_CRASH_LOADED_PATH "/sys/kernel/kexec_crash_loaded"
|
|
|
|
+#ifndef BLKGETSIZE64
|
|
+#define BLKGETSIZE64 _IOR(0x12,114,size_t)
|
|
+#endif
|
|
+
|
|
unsigned long long mem_min = 0;
|
|
unsigned long long mem_max = ULONG_MAX;
|
|
unsigned long elfcorehdrsz = 0;
|