All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] arch/i386/kernel/efi.c: fixing uninitialised variable
@ 2007-05-27 20:11 thompsy
  2007-05-28 12:09 ` Florian Westphal
  2007-05-28 17:57 ` Andrew Thompson
  0 siblings, 2 replies; 3+ messages in thread
From: thompsy @ 2007-05-27 20:11 UTC (permalink / raw)
  To: kernel-janitors

Hello All,

I'm going to try and work through some of the gcc warnings generated from
building the kernel. I've included my first patch below but have a question
first.

Having looking in MAINTAINERS I wasn't sure who the appropriate person
would be to CC this to. The closest thing I could find was FIRMWARE LOADER
header which is listed as an orphan. In this case should I just CC to LKML?

The patch initialises the prev struct as it gets checked before being
initialised later in the code. This removes the warning generated by gcc.

Any feedback welcome.
Thanks

Signed-off-by: Andrew Thompson <thompsy@gmail.com>
---
diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c
index a180802..8a9faeb 100644
--- a/arch/i386/kernel/efi.c
+++ b/arch/i386/kernel/efi.c
@@ -278,7 +278,7 @@ void efi_memmap_walk(efi_freemem_callbac
 	struct range {
 		unsigned long start;
 		unsigned long end;
-	} prev, curr;
+	} prev={}, curr;
 	efi_memory_desc_t *md;
 	unsigned long start, end;
 	void *p;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2007-05-28 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-27 20:11 [KJ] [PATCH] arch/i386/kernel/efi.c: fixing uninitialised variable thompsy
2007-05-28 12:09 ` Florian Westphal
2007-05-28 17:57 ` Andrew Thompson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.