linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] efi: Fix free_end build warning
@ 2014-11-12 20:27 Geoff Levand
  2014-11-13 11:44 ` Will Deacon
  2014-11-14 10:22 ` Will Deacon
  0 siblings, 2 replies; 6+ messages in thread
From: Geoff Levand @ 2014-11-12 20:27 UTC (permalink / raw)
  To: linux-arm-kernel

Initialize the free_end variable to zero.  Fixes build warnings
like these:

  arch/arm64/kernel/efi.c: warning: ?free_end? may be used uninitialized in this function

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
Got this with the latest arm64/for-next/core branch.  Please consider.

-Geoff 

 arch/arm64/kernel/efi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c
index 4f39a18..83fc53c 100644
--- a/arch/arm64/kernel/efi.c
+++ b/arch/arm64/kernel/efi.c
@@ -239,6 +239,7 @@ static void __init free_boot_services(void)
 	 * want to keep for UEFI.
 	 */
 
+	free_end = 0;
 	keep_end = 0;
 	free_start = 0;
 
-- 
1.9.1

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

end of thread, other threads:[~2014-11-14 10:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 20:27 [PATCH] efi: Fix free_end build warning Geoff Levand
2014-11-13 11:44 ` Will Deacon
2014-11-13 19:42   ` Geoff Levand
2014-11-14 10:22 ` Will Deacon
2014-11-14 10:29   ` Ard Biesheuvel
2014-11-14 10:35     ` Will Deacon

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).