[PATCH] Mark prop unused in early_init_dt_scan_chosen().

Scott Wood scottwood at freescale.com
Wed May 9 03:14:51 EST 2007


The prop variable is only referenced when initrd support is
turned on.

Signed-off-by: Scott Wood <scottwood at freescale.com>
---
 arch/powerpc/kernel/prom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index caef555..6705459 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -720,7 +720,7 @@ static int __init early_init_dt_scan_chosen(unsigned long node,
 					    const char *uname, int depth, void *data)
 {
 	unsigned long *lprop;
-	u32 *prop;
+	u32 __attribute__((unused)) *prop;
 	unsigned long l;
 	char *p;
 
-- 
1.5.0.3



More information about the Linuxppc-dev mailing list