summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/xmalloc.patch
blob: 61774721d038a31569acf4eece672c5c5c797356 (plain)
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
From c5cf5a83be4e3ce04ebf3250f77aeb465eeb53a1 Mon Sep 17 00:00:00 2001
From: Xiao Ni <xni@redhat.com>
Date: Fri, 17 Jan 2025 15:15:40 +0800
Subject: [PATCH] mdadm/raid6check: add xmalloc.h to raid6check.c

It reports building error:
raid6check.c:324:26: error: implicit declaration of function xmalloc

Add xmalloc.h to raid6check.c file to fix this.

Signed-off-by: Xiao Ni <xni@redhat.com>
Link: https://lore.kernel.org/r/20250117071540.4094-1-xni@redhat.com
Signed-off-by: Song Liu <song@kernel.org>

Upstream-Status: Backport [https://web.git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?h=main&id=e0df6c4c984d564e9e40913727e916a6cd8f466e]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 raid6check.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/raid6check.c b/raid6check.c
index 8e7f1421..486b10c6 100644
--- a/raid6check.c
+++ b/raid6check.c
@@ -26,6 +26,7 @@
 #define _FILE_OFFSET_BITS 64
 
 #include "mdadm.h"
+#include "xmalloc.h"
 #include <stdint.h>
 #include <sys/mman.h>