diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/files/xmalloc.patch')
-rw-r--r-- | meta/recipes-extended/mdadm/files/xmalloc.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/xmalloc.patch b/meta/recipes-extended/mdadm/files/xmalloc.patch new file mode 100644 index 0000000000..61774721d0 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/xmalloc.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From c5cf5a83be4e3ce04ebf3250f77aeb465eeb53a1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xiao Ni <xni@redhat.com> | ||
3 | Date: Fri, 17 Jan 2025 15:15:40 +0800 | ||
4 | Subject: [PATCH] mdadm/raid6check: add xmalloc.h to raid6check.c | ||
5 | |||
6 | It reports building error: | ||
7 | raid6check.c:324:26: error: implicit declaration of function xmalloc | ||
8 | |||
9 | Add xmalloc.h to raid6check.c file to fix this. | ||
10 | |||
11 | Signed-off-by: Xiao Ni <xni@redhat.com> | ||
12 | Link: https://lore.kernel.org/r/20250117071540.4094-1-xni@redhat.com | ||
13 | Signed-off-by: Song Liu <song@kernel.org> | ||
14 | |||
15 | Upstream-Status: Backport [https://web.git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?h=main&id=e0df6c4c984d564e9e40913727e916a6cd8f466e] | ||
16 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
17 | --- | ||
18 | raid6check.c | 1 + | ||
19 | 1 file changed, 1 insertion(+) | ||
20 | |||
21 | diff --git a/raid6check.c b/raid6check.c | ||
22 | index 8e7f1421..486b10c6 100644 | ||
23 | --- a/raid6check.c | ||
24 | +++ b/raid6check.c | ||
25 | @@ -26,6 +26,7 @@ | ||
26 | #define _FILE_OFFSET_BITS 64 | ||
27 | |||
28 | #include "mdadm.h" | ||
29 | +#include "xmalloc.h" | ||
30 | #include <stdint.h> | ||
31 | #include <sys/mman.h> | ||
32 | |||