Skip to contentSkip to conversation

mdadm/raid6check: add xmalloc.h to raid6check.c

PATCH In review Xiao Ni 2 participants 2 messages Jan 17, 2025 MD RAID

lore
Share & tools
lore

Xiao Ni

author
#0 lore raw

PATCH 1/1 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.

---
 raid6check.c | 1 +
 1 file changed, 1 insertion(+)
raid6check.c +1 -0
index 99477761c640..95533f7d0836 100644
@@ -23,6 +23,7 @@
  */
 
 #include "mdadm.h"
+#include "xmalloc.h"
 #include <stdint.h>
 #include <sys/mman.h>
 
Signature · 1 line
2.32.0 (Apple Git-132)
maintainer
#1 lore raw
Quoted 7 lines · Xiao Ni

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

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

Reviewed-and-tested-by Song Liu <[email protected]>

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

Song