[Patch/master v2] pr_warn() must be pr_warning()

Dirk Behme dirk.behme at googlemail.com
Tue May 31 11:32:27 EDT 2011


From: Dirk Behme <dirk.behme at googlemail.com>

Fix the warning/error:

drivers/mci/mci-core.c: In function 'mci_card_probe':
drivers/mci/mci-core.c:1195: warning: implicit declaration of function 'pr_warn'
...
drivers/built-in.o: In function `mci_card_probe':
mc13892.c:(.text.mci_card_probe+0x68): undefined reference to `pr_warn'

Signed-off-by: Dirk Behme <dirk.behme at googlemail.com>

---

Note: This replaces the patch

http://lists.infradead.org/pipermail/barebox/2011-May/003549.html

by using the kernel macro as proposed by Uwe Kleine-Koenig.

 include/linux/barebox-wrapper.h |    2 ++
 1 file changed, 2 insertions(+)

Index: barebox.git/include/linux/barebox-wrapper.h
===================================================================
--- barebox.git.orig/include/linux/barebox-wrapper.h
+++ barebox.git/include/linux/barebox-wrapper.h
@@ -20,6 +20,8 @@
 
 #define printk			printf
 
+#define pr_warn			pr_warning
+
 #define __init
 
 #define MODULE_AUTHOR(x)



More information about the barebox mailing list