powerpc/iseries: Fix unused function warning in iSeries DT code

Message ID aacfb5952246dc41f6949f08be6bdd71fddecc6f.1244722700.git.michael@ellerman.id.au
State Accepted, archived
Commit 27167c7e9bc3b4b93d1b567e0cf9a3744dd4f1f2
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Michael Ellerman June 11, 2009, 12:18 p.m.
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>
 arch/powerpc/platforms/iseries/dt.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/arch/powerpc/platforms/iseries/dt.c b/arch/powerpc/platforms/iseries/dt.c
index 4543c4b..c5a87a7 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));