Skip to content

Commit 6a84f57

Browse files
gkammelashligit
authored andcommitted
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>
1 parent c2f662e commit 6a84f57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • include/linux/raid

include/linux/raid/pq.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ void raid6_dual_recov(int disks, size_t bytes, int faila, int failb,
152152

153153
# define jiffies raid6_jiffies()
154154
# define printk printf
155+
# define pr_err(format, ...) fprintf(stderr, format, ## __VA_ARGS__)
156+
# define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__)
155157
# define GFP_KERNEL 0
156158
# define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
157159
PROT_READ|PROT_WRITE, \

0 commit comments

Comments
 (0)