linux-next: build failure after merge of the final tree (vfs treerelated)
From: Stephen Rothwell
Date: Wed Dec 28 2011 - 03:34:47 EST
Hi all,
After merging the final tree, today's linux-next build (sparc32 defconfig)
failed like this:
drivers/tty/sysrq.c: In function 'write_sysrq_trigger':
drivers/tty/sysrq.c:867:3: error: implicit declaration of function 'get_user' [-Werror=implicit-function-declaration]
Caused by commit b1cdabb05024 ("fs: move code out of buffer.c").
Presumably buffer_head.h was implictly including uaccess.h.
I have added the following patch:
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Dec 2011 19:28:15 +1100
Subject: [PATCH] sysreq.c needs uaccess.h for get_user
Commit b1cdabb05024 ("fs: move code out of buffer.c") removed the include
of linux/buffer_head.h which was presumably implictly including uaccess.h
on sparc32.
Fixes this build error:
drivers/tty/sysrq.c: In function 'write_sysrq_trigger':
drivers/tty/sysrq.c:867:3: error: implicit declaration of function 'get_user' [-Werror=implicit-function-declaration]
Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
drivers/tty/sysrq.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c
index 4629801..7867b7c 100644
--- a/drivers/tty/sysrq.c
+++ b/drivers/tty/sysrq.c
@@ -40,6 +40,7 @@
#include <linux/oom.h>
#include <linux/slab.h>
#include <linux/input.h>
+#include <linux/uaccess.h>
#include <asm/ptrace.h>
#include <asm/irq_regs.h>
--
1.7.8.197.g73c6b
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/
Attachment:
pgp00000.pgp
Description: PGP signature