debugfs: add missing #ifdef HAS_IOMEM
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 27 Dec 2011 14:08:28 +0000 (15:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2012 00:45:16 +0000 (16:45 -0800)
commit3b85e4ab2ec1dea29374f16205917b1b5589bc81
treea3fca276ebba3e32591ffad65f0ef467a876f750
parenta87b5b1cc1b95d7342eb2b38018d115abc8c4991
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>
fs/debugfs/file.c