summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2009-06-11 04:18:26 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-15 05:27:37 +0200
commit27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2 (patch)
treeb03634a996611724c46865122cb535ff8da20321 /arch
parentpowerpc: Only build prom_init.o when CONFIG_PPC_OF_BOOT_TRAMPOLINE=y (diff)
downloadlinux-27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2.tar.xz
linux-27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2.zip
powerpc/iseries: Fix unused function warning in iSeries DT code
If CONFIG_BLK_DEV_INITRD is unset dt_prop_u64() is unused, which causes a warning. We don't really want to tie the definition to BLK_DEV_INITRD, so mark it as maybe unused. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/iseries/dt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/iseries/dt.c b/arch/powerpc/platforms/iseries/dt.c
index 4543c4bc3a56..c5a87a72057b 100644
--- a/arch/powerpc/platforms/iseries/dt.c
+++ b/arch/powerpc/platforms/iseries/dt.c
@@ -204,7 +204,8 @@ static void __init dt_prop_u32(struct iseries_flat_dt *dt, const char *name,
dt_prop(dt, name, &data, sizeof(u32));
}
-static void __init dt_prop_u64(struct iseries_flat_dt *dt, const char *name,
+static void __init __maybe_unused dt_prop_u64(struct iseries_flat_dt *dt,
+ const char *name,
u64 data)
{
dt_prop(dt, name, &data, sizeof(u64));