You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
From cc75b0faaa016e54d569486c9a7abe6c39cb883a Mon Sep 17 00:00:00 2001
|
|
From: Blazej Kucman <blazej.kucman@intel.com>
|
|
Date: Fri, 22 Mar 2024 12:51:15 +0100
|
|
Subject: [PATCH 42/69] mdadm: Move pr_vrb define to mdadm.h
|
|
|
|
Move pr_vrb define from super-intel.c to mdadm.h to make it widely
|
|
available. This change will be used in the next patches.
|
|
|
|
Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
|
|
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
|
|
---
|
|
mdadm.h | 2 ++
|
|
super-intel.c | 2 --
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/mdadm.h b/mdadm.h
|
|
index ae2106a2..fbb161ba 100644
|
|
--- a/mdadm.h
|
|
+++ b/mdadm.h
|
|
@@ -1911,6 +1911,8 @@ static inline int xasprintf(char **strp, const char *fmt, ...) {
|
|
|
|
#define pr_info(fmt, args...) printf("%s: "fmt, Name, ##args)
|
|
|
|
+#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);
|
|
diff --git a/super-intel.c b/super-intel.c
|
|
index 70f3c4ef..212387ec 100644
|
|
--- a/super-intel.c
|
|
+++ b/super-intel.c
|
|
@@ -393,8 +393,6 @@ struct md_list {
|
|
struct md_list *next;
|
|
};
|
|
|
|
-#define pr_vrb(fmt, arg...) (void) (verbose && pr_err(fmt, ##arg))
|
|
-
|
|
static __u8 migr_type(struct imsm_dev *dev)
|
|
{
|
|
if (dev->vol.migr_type == MIGR_VERIFY &&
|
|
--
|
|
2.41.0
|
|
|