* linux-next: build failure after merge of the driver-core tree
@ 2011-11-21 1:57 Stephen Rothwell
2011-11-21 9:01 ` [PATCH] debugfs: bugfix: include <linux/io.h> in file.c Alessandro Rubini
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2011-11-21 1:57 UTC (permalink / raw)
To: Greg KH; +Cc: linux-next, linux-kernel, Alessandro Rubini
[-- Attachment #1: Type: text/plain, Size: 598 bytes --]
Hi Greg,
After merging the driver-core tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
fs/debugfs/file.c: In function 'debugfs_print_regs32':
fs/debugfs/file.c:560:7: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
Caused by commit 1a087c6ad975 ("debugfs: add tools to printk 32-bit
registers"). To use readl(), linux/io.h should be included.
I have used the driver-core tree from next-20111118 for today.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] debugfs: bugfix: include <linux/io.h> in file.c
2011-11-21 1:57 linux-next: build failure after merge of the driver-core tree Stephen Rothwell
@ 2011-11-21 9:01 ` Alessandro Rubini
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Rubini @ 2011-11-21 9:01 UTC (permalink / raw)
To: sfr; +Cc: greg, linux-next, linux-kernel
The regs32 machinery uses readl. I forgot the mandatory include
and the code was not compiling on all archs.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
> After merging the driver-core tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> fs/debugfs/file.c: In function 'debugfs_print_regs32':
> fs/debugfs/file.c:560:7: error: implicit declaration of function 'readl' [-
> Werror=implicit-function-declaration]
I'm learning the lesson. I'll be more careful next time.
Sorry for your patience.
/alessandro
fs/debugfs/file.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index fc98ec9..e0a3a59 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -19,6 +19,7 @@
#include <linux/pagemap.h>
#include <linux/namei.h>
#include <linux/debugfs.h>
+#include <linux/io.h>
static ssize_t default_read_file(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
--
1.6.0.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-21 9:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 1:57 linux-next: build failure after merge of the driver-core tree Stephen Rothwell
2011-11-21 9:01 ` [PATCH] debugfs: bugfix: include <linux/io.h> in file.c Alessandro Rubini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).