Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1314569 > unrolled thread
| Started by | Gayatri Kammela <gayatri.kammela@intel.com> |
|---|---|
| First post | 2016-01-21 23:30 +0100 |
| Last post | 2016-01-22 00:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] raid6/algos.c : bug fix : Add the missing definitions to the pq.h file Gayatri Kammela <gayatri.kammela@intel.com> - 2016-01-21 23:30 +0100
Re: [PATCH] raid6/algos.c : bug fix : Add the missing definitions to the pq.h file Shaohua Li <shli@kernel.org> - 2016-01-22 00:10 +0100
| From | Gayatri Kammela <gayatri.kammela@intel.com> |
|---|---|
| Date | 2016-01-21 23:30 +0100 |
| Subject | [PATCH] raid6/algos.c : bug fix : Add the missing definitions to the pq.h file |
| Message-ID | <qTvTQ-3bF-9@gated-at.bofh.it> |
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> --- include/linux/raid/pq.h | 2 ++ 1 file changed, 2 insertions(+) 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, \ -- 1.9.1
[toc] | [next] | [standalone]
| From | Shaohua Li <shli@kernel.org> |
|---|---|
| Date | 2016-01-22 00:10 +0100 |
| Subject | Re: [PATCH] raid6/algos.c : bug fix : Add the missing definitions to the pq.h file |
| Message-ID | <qTwwy-3Hx-9@gated-at.bofh.it> |
| In reply to | #1314569 |
On Thu, Jan 21, 2016 at 02:02:39PM -0800, Gayatri Kammela wrote: > 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> > --- > include/linux/raid/pq.h | 2 ++ > 1 file changed, 2 insertions(+) > > 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, \ Applied, thanks!
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web