summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas@biessmann.org>2016-06-04 22:27:22 +0200
committerAndreas Bießmann <andreas@biessmann.org>2016-06-12 23:49:38 +0200
commit88a7fffe382b9640099db4d655a36a3a0c68692d (patch)
tree96bbc7b251d604fe4e67c7355ce3a5ee7480248a /include/linux
parentb3ab0fc7dda96d1bb5e7315edef3741fce0140b8 (diff)
downloadblackbird-obmc-uboot-88a7fffe382b9640099db4d655a36a3a0c68692d.tar.gz
blackbird-obmc-uboot-88a7fffe382b9640099db4d655a36a3a0c68692d.zip
linux/compat.h: add dev_warn()
In order to prevent build errors for copied code from linux introduce dev_warn(). Suggested-by: Scott Wood <oss@buserror.net> Signed-off-by: Andreas Bießmann <andreas@biessmann.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index e561ee311a..7236b8d0c3 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -25,6 +25,8 @@ extern struct p_current *current;
printf(fmt, ##args)
#define dev_err(dev, fmt, args...) \
printf(fmt, ##args)
+#define dev_warn(dev, fmt, args...) \
+ printf(fmt, ##args)
#define printk printf
#define printk_once printf
OpenPOWER on IntegriCloud