From patchwork Mon Nov 27 09:46:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 10076181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A8D1A6028E for ; Mon, 27 Nov 2017 09:46:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A54C28D7B for ; Mon, 27 Nov 2017 09:46:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F1A028DDF; Mon, 27 Nov 2017 09:46:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 239ED28D7B for ; Mon, 27 Nov 2017 09:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XjF7b6Ay+Nfce3uUTkDmHYNFnN4BX97LP58eCTKMIZY=; b=mRs9vGuN3CiNXQ4ktbJP6kCTl irL8jqMoSpfGKOEV3EY4yu6L6WkVWE2dNSklcDcVW0h/4k5H4a9ftHdV9NAkn9gz7qjjP39yFEBiz LfslseZyAKrnmqcxZ9e9gNYZfTeLeqrlQBmGrRrCH+qaZm+hul2hpFdo3fjldPEAV2Ore/m0Ib1+b k7og7SoCX7Bjb2XSgx72R5J+9YK+DU8rScosri9pw18qQONJRbCQOqQRBGe8lJNw8mepzuLBGRRpr T/S5OFiYz30iiS9fXlSN7MJx4BXlKJqW7yW1qQxiwt6Z2hth4Gs7wdap+zlbvWSNbkEazI5R58TZp lTnmeZVyQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJG04-0005w9-R3; Mon, 27 Nov 2017 09:46:52 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJFzz-0005XO-Ul for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2017 09:46:50 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 069EE82398; Mon, 27 Nov 2017 10:46:20 +0100 (CET) Date: Mon, 27 Nov 2017 10:46:20 +0100 From: Pavel Machek To: Masahiro Yamada , rmk+kernel@armlinux.org.uk, tony@atomide.com, j-keerthy@ti.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] fix perl locale warnings in arch/arm/boot/ Message-ID: <20171127094620.GA18072@amd> References: <20171119222703.GA12824@amd> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171127_014648_223473_1A29F384 X-CRM114-Status: GOOD ( 11.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michal Marek , kernel list , Linux Kbuild mailing list Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 429f7a062e3b5cf6fcf01eb00600cee5fe4d751f introduced perl into arch/arm/boot/compressed/Makefile, which unfortunately leads to locale warnings. Fix it by setting default locale. Signed-off-by: Pavel Machek diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 45a6b9b..4656e98 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -118,7 +118,7 @@ asflags-y := -DZIMAGE # Supply kernel BSS size to the decompressor via a linker symbol. KBSS_SZ = $(shell $(CROSS_COMPILE)nm $(obj)/../../../../vmlinux | \ - perl -e 'while (<>) { \ + LC_ALL=C perl -e 'while (<>) { \ $$bss_start=hex($$1) if /^([[:xdigit:]]+) B __bss_start$$/; \ $$bss_end=hex($$1) if /^([[:xdigit:]]+) B __bss_stop$$/; \ }; printf "%d\n", $$bss_end - $$bss_start;')