Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ramoops: fix compile failure on parisc

Fixes this:

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.

Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

James Bottomley and committed by
Linus Torvalds
83c1b317 f85f19de

+1
+1
drivers/char/ramoops.c
··· 22 22 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 23 23 24 24 #include <linux/kernel.h> 25 + #include <linux/err.h> 25 26 #include <linux/module.h> 26 27 #include <linux/kmsg_dump.h> 27 28 #include <linux/time.h>