diff mbox series

[1/1] mdadm/raid6check: add xmalloc.h to raid6check.c

Message ID 20250117071540.4094-1-xni@redhat.com (mailing list archive)
State New
Headers show
Series [1/1] mdadm/raid6check: add xmalloc.h to raid6check.c | expand

Checks

Context Check Description
mdraidci/vmtest-md-6_14-PR fail merge-conflict

Commit Message

Xiao Ni Jan. 17, 2025, 7:15 a.m. UTC
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>
---
 raid6check.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Song Liu Jan. 17, 2025, 6:37 p.m. UTC | #1
On Thu, Jan 16, 2025 at 11:15 PM Xiao Ni <xni@redhat.com> wrote:
>
> 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>

Reviewed-and-tested-by: Song Liu <song@kernel.org>

It appears I cannot push to the mdadm repo on kernel.org yet.

Song
diff mbox series

Patch

diff --git a/raid6check.c b/raid6check.c
index 99477761c640..95533f7d0836 100644
--- a/raid6check.c
+++ b/raid6check.c
@@ -23,6 +23,7 @@ 
  */
 
 #include "mdadm.h"
+#include "xmalloc.h"
 #include <stdint.h>
 #include <sys/mman.h>