mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [Patch/master v2] pr_warn() must be pr_warning()
@ 2011-05-31 15:32 Dirk Behme
  0 siblings, 0 replies; only message in thread
From: Dirk Behme @ 2011-05-31 15:32 UTC (permalink / raw)
  To: barebox

From: Dirk Behme <dirk.behme@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@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)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-31 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 15:32 [Patch/master v2] pr_warn() must be pr_warning() Dirk Behme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox