aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-12-27 09:08:28 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-03 19:45:16 -0500
commit3b85e4ab2ec1dea29374f16205917b1b5589bc81 (patch)
treea3fca276ebba3e32591ffad65f0ef467a876f750 /fs/debugfs
parenta87b5b1cc1b95d7342eb2b38018d115abc8c4991 (diff)
debugfs: add missing #ifdef HAS_IOMEM
"debugfs: add tools to printk 32-bit registers" adds new functions which rely on IOMEM functionality which is not present on all architectures and therefore result in compile errors: fs/debugfs/file.c: In function 'debugfs_print_regs32': fs/debugfs/file.c:561:7: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration] Add an #ifdef CONFIG_HAS_IOMEM to fix this Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Acked-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/debugfs')
-rw-r--r--fs/debugfs/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index 989f07fb86f7..ea62afa4fd57 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -528,6 +528,8 @@ struct dentry *debugfs_create_blob(const char *name, mode_t mode,
528} 528}
529EXPORT_SYMBOL_GPL(debugfs_create_blob); 529EXPORT_SYMBOL_GPL(debugfs_create_blob);
530 530
531#ifdef CONFIG_HAS_IOMEM
532
531/* 533/*
532 * The regset32 stuff is used to print 32-bit registers using the 534 * The regset32 stuff is used to print 32-bit registers using the
533 * seq_file utilities. We offer printing a register set in an already-opened 535 * seq_file utilities. We offer printing a register set in an already-opened
@@ -616,3 +618,5 @@ struct dentry *debugfs_create_regset32(const char *name, mode_t mode,
616 return debugfs_create_file(name, mode, parent, regset, &fops_regset32); 618 return debugfs_create_file(name, mode, parent, regset, &fops_regset32);
617} 619}
618EXPORT_SYMBOL_GPL(debugfs_create_regset32); 620EXPORT_SYMBOL_GPL(debugfs_create_regset32);
621
622#endif /* CONFIG_HAS_IOMEM */