summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2009-06-11 02:18:26 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-15 13:27:37 +1000
commit27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2 (patch)
treeb03634a996611724c46865122cb535ff8da20321 /arch/powerpc/platforms
parent7719ed7ce814aa89c6af082f6773dddc93c6f237 (diff)
downloadlinux-stable-27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2.tar.gz
linux-stable-27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2.tar.bz2
linux-stable-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/powerpc/platforms')
-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));