Thread (7 messages) flat view 7 messages, 5 authors, 2007-05-10

Re: [PATCH] Mark prop unused in early_init_dt_scan_chosen().

From: Kumar Gala <hidden>
Date: 2007-05-10 03:44:03

On Tue, 8 May 2007, Scott Wood wrote:
quoted hunk ↗ jump to hunk
The prop variable is only referenced when initrd support is
turned on.

Signed-off-by: Scott Wood <redacted>
---
 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;
is this the desired way to remove warnings related to CONFIG_ options?  I
know in the past we'd wrap it with a #ifdef CONFIG_FOO
 	unsigned long l;
 	char *p;
- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help