Skip to contentSkip to conversation

ramoops: fix compile failure on parisc

PATCH James Bottomley 1 participant 1 message Jul 29, 2011 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

drivers/char/ramoops.c: In function 'ramoops_init':
drivers/char/ramoops.c:221: error: implicit declaration of function 'IS_ERR' drivers/char/ramoops.c:222: error: implicit declaration of function 'PTR_ERR'

If it actually builds on other platforms, it's probably getting linux/err.h via some other #include.

---

drivers/char/ramoops.c +1 -0
index bd9b94b..fca0c51 100644
@@ -22,6 +22,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/kernel.h>
+#include <linux/err.h>
 #include <linux/module.h>
 #include <linux/kmsg_dump.h>
 #include <linux/time.h>