From patchwork Wed Nov 12 20:27:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 5291591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AF1F99F2F1 for ; Wed, 12 Nov 2014 20:30:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC751201D3 for ; Wed, 12 Nov 2014 20:30:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D21BB201C8 for ; Wed, 12 Nov 2014 20:30:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XoeVt-0007ps-Du; Wed, 12 Nov 2014 20:27:37 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XoeVr-0007pf-GC for linux-arm-kernel@bombadil.infradead.org; Wed, 12 Nov 2014 20:27:35 +0000 Received: from 107-1-141-74-ip-static.hfc.comcastbusiness.net ([107.1.141.74] helo=[192.168.252.189]) by casper.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1XoeVo-00057Y-Lz; Wed, 12 Nov 2014 20:27:32 +0000 Message-ID: <1415824050.15847.9.camel@smoke> Subject: [PATCH] efi: Fix free_end build warning From: Geoff Levand To: Catalin Marinas , Will Deacon Date: Wed, 12 Nov 2014 12:27:30 -0800 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Cc: "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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;