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: 10076177 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 B809360353 for ; Mon, 27 Nov 2017 09:46:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 965C828D7B for ; Mon, 27 Nov 2017 09:46:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8989828DD3; Mon, 27 Nov 2017 09:46:25 +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=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EAFC28D7B for ; Mon, 27 Nov 2017 09:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751350AbdK0JqY (ORCPT ); Mon, 27 Nov 2017 04:46:24 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33523 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277AbdK0JqX (ORCPT ); Mon, 27 Nov 2017 04:46:23 -0500 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 Cc: kernel list , Michal Marek , Linux Kbuild mailing list Subject: [PATCH] fix perl locale warnings in arch/arm/boot/ Message-ID: <20171127094620.GA18072@amd> References: <20171119222703.GA12824@amd> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.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;')