summaryrefslogtreecommitdiffstats
path: root/include/linux/raid/pq.h
diff options
context:
space:
mode:
authorGayatri Kammela2016-01-21 23:02:39 +0100
committerShaohua Li2016-01-21 23:47:08 +0100
commit6a84f57241e1fb9fb6772256f538d1073359a32d (patch)
treeb3620f5cba035e2a6616bc79d959a77e7ec18a80 /include/linux/raid/pq.h
parentMD: add myself as MD maintainer (diff)
downloadkernel-qcow2-linux-6a84f57241e1fb9fb6772256f538d1073359a32d.tar.gz
kernel-qcow2-linux-6a84f57241e1fb9fb6772256f538d1073359a32d.tar.xz
kernel-qcow2-linux-6a84f57241e1fb9fb6772256f538d1073359a32d.zip
raid6/algos.c : bug fix : Add the missing definitions to the pq.h file
Adding these pr_info and pr_err definitions so as to allow code to be compiled successfully for testing in userspace, since the printk has been replaced by pr_info and pr_err in algos.c Absence of these definitions result in the compilation errors such as ' undefined reference to `pr_info' ' ' undefined reference to `pr_err' ' Cc: NeilBrown <neilb@suse.com> Cc: Anton Blanchard <anton@samba.org> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'include/linux/raid/pq.h')
-rw-r--r--include/linux/raid/pq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/raid/pq.h b/include/linux/raid/pq.h
index a7a06d1dcf9c..a0118d5929a9 100644
--- a/include/linux/raid/pq.h
+++ b/include/linux/raid/pq.h
@@ -152,6 +152,8 @@ void raid6_dual_recov(int disks, size_t bytes, int faila, int failb,
# define jiffies raid6_jiffies()
# define printk printf
+# define pr_err(format, ...) fprintf(stderr, format, ## __VA_ARGS__)
+# define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__)
# define GFP_KERNEL 0
# define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
PROT_READ|PROT_WRITE, \