linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Mark prop unused in early_init_dt_scan_chosen().
@ 2007-05-08 17:14 Scott Wood
  2007-05-08 23:56 ` Michael Ellerman
  2007-05-10  3:39 ` Kumar Gala
  0 siblings, 2 replies; 7+ messages in thread
From: Scott Wood @ 2007-05-08 17:14 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

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

Signed-off-by: Scott Wood <scottwood@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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-10 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-08 17:14 [PATCH] Mark prop unused in early_init_dt_scan_chosen() Scott Wood
2007-05-08 23:56 ` Michael Ellerman
2007-05-09  0:41   ` David Gibson
2007-05-10  3:39 ` Kumar Gala
2007-05-10  7:39   ` Geert Uytterhoeven
2007-05-10 15:54     ` Scott Wood
2007-05-10 16:06       ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).