summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-09-25 13:16:10 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-09-27 11:16:22 +0200
commitee3a6cab09c8acaf6706b3710f5652e9be43b57e (patch)
tree67b0a477d132ea1347c4dd462e9d3b6cea3644e5 /mdadm.h
parentMdmonitor: Fix startup with missing directory (diff)
downloadmdadm-ee3a6cab09c8acaf6706b3710f5652e9be43b57e.tar.xz
mdadm-ee3a6cab09c8acaf6706b3710f5652e9be43b57e.zip
mdadm: add xmalloc.h
Move memory declaration helpers outside mdadm.h. They seems to be useful so keep them but include separatelly. Rework them to not reffer to Name[] declared internally in mdadm/mdmon. This is first step to start decomplexing mdadm.h. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/mdadm.h b/mdadm.h
index ce8155b5..bbc1b97f 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1937,11 +1937,6 @@ static inline int xasprintf(char **strp, const char *fmt, ...) {
#define pr_vrb(fmt, arg...) ((void)(verbose && pr_err(fmt, ##arg)))
-void *xmalloc(size_t len);
-void *xrealloc(void *ptr, size_t len);
-void *xcalloc(size_t num, size_t size);
-char *xstrdup(const char *str);
-
#define LEVEL_MULTIPATH (-4)
#define LEVEL_LINEAR (-1)
#define LEVEL_FAULTY (-5)