Received: by 10.223.185.116 with SMTP id b49csp6172617wrg; Thu, 8 Mar 2018 03:06:17 -0800 (PST) X-Google-Smtp-Source: AG47ELvpnVi0/Th8rndwn5vHo2egiFGeqyYNiq57emqAcd21s+fU5vsplqlF+XhoNCbbYPxo9BLt X-Received: by 2002:a17:902:10d:: with SMTP id 13-v6mr23339542plb.266.1520507177194; Thu, 08 Mar 2018 03:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520507177; cv=none; d=google.com; s=arc-20160816; b=ss3QWik/8ENFRLRLb1OI9V6r8LC9q7dK13iona+UmyzCrXA6qsQtxvzIWleSJc+ZVa iDH5jjbC8xe1F7yCnooNYOSlcYyv74c91Nyi2iXgjBhKndz2Hr5xbJagVbwU6VAIeMQo A/xbuQENFAo5N6dGFmNiC0FmHFxMAYYs3G2UgJ1mFOc65ee7libUmHyY6s2KZUlD0h5a vswqLpYIBOfgJet3z6zU4NRxYLaG31FB5YJtvH69nMEnn7zt3VgOsWFMi2l+uAvXcKTY PMk3AyUU2OGiOP1jAL36/abyOzQSASgNLSidId989X0sn4tRCFmY1jnwOpiuVAuB0CQx iYwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=JUfbSsSDOWqhKPpEA7e03fGVlS4wda/JIkoIavqVpWk=; b=A73nm5skxyWr85/fGcqp86kEDzJcx6pZNkw364B1zjBQVY4559kBbilyG9xVzJMnko tTpwa98XT+fRPw5hbX4lcaf/rihLkwpf93yl6zceDVEvHyK/NhTeG9DttTYLXBtYJu1Q G+JJnLWlWQ+gc2iYWDx+AIDzp8mXF2yHnX37klg2KF6Yo9LXKs5sLeh+HAzYFwc0LRwY pZKWW3S3iQhvH/izjfCDR5FFeXtASL6Kd7PKa6LmWCc8BdxFy0pdj3t8/7TgSGvCsBu/ QBmAS7kBetuRAaP75tofrH5ermpH5zkC+ZGwew/zj0zvTFrt+lD8JtRcnyc0OEdMVyNR 43mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u128si12814485pgc.587.2018.03.08.03.06.02; Thu, 08 Mar 2018 03:06:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965206AbeCHLFL (ORCPT + 99 others); Thu, 8 Mar 2018 06:05:11 -0500 Received: from smtprelay0240.hostedemail.com ([216.40.44.240]:38062 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751971AbeCHLFJ (ORCPT ); Thu, 8 Mar 2018 06:05:09 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 99EFD837F27E; Thu, 8 Mar 2018 11:05:08 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3871:3872:4321:4605:5007:6119:7576:7903:10004:10400:10848:11026:11232:11657:11658:11914:12043:12048:12296:12438:12555:12740:12760:12895:12986:13069:13311:13357:13439:14181:14659:14721:21080:21433:21451:21627:30012:30054:30065:30090:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:21,LUA_SUMMARY:none X-HE-Tag: angle16_fa28ab77e602 X-Filterd-Recvd-Size: 2442 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Thu, 8 Mar 2018 11:05:07 +0000 (UTC) Message-ID: <1520507105.11634.5.camel@perches.com> Subject: Re: [PATCH 12/12] efi: make const array 'apple' static From: Joe Perches To: Ard Biesheuvel , linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Colin Ian King , linux-kernel@vger.kernel.org Date: Thu, 08 Mar 2018 03:05:05 -0800 In-Reply-To: <20180308080020.22828-13-ard.biesheuvel@linaro.org> References: <20180308080020.22828-1-ard.biesheuvel@linaro.org> <20180308080020.22828-13-ard.biesheuvel@linaro.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-03-08 at 08:00 +0000, Ard Biesheuvel wrote: > From: Colin Ian King > > Don't populate the const read-only array 'buf' on the stack but instead > make it static. Makes the object code smaller by 64 bytes: > > Before: > text data bss dec hex filename > 9264 1 16 9281 2441 arch/x86/boot/compressed/eboot.o > > After: > text data bss dec hex filename > 9200 1 16 9217 2401 arch/x86/boot/compressed/eboot.o > > (gcc version 7.2.0 x86_64) > > Signed-off-by: Colin Ian King > Signed-off-by: Ard Biesheuvel > --- > arch/x86/boot/compressed/eboot.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c > index 886a9115af62..f2251c1c9853 100644 > --- a/arch/x86/boot/compressed/eboot.c > +++ b/arch/x86/boot/compressed/eboot.c > @@ -423,7 +423,7 @@ static void retrieve_apple_device_properties(struct boot_params *boot_params) > > static void setup_quirks(struct boot_params *boot_params) > { > - efi_char16_t const apple[] = { 'A', 'p', 'p', 'l', 'e', 0 }; > + static efi_char16_t const apple[] = { 'A', 'p', 'p', 'l', 'e', 0 }; Perhaps static const efi_char16_t apple[] ... is better. > efi_char16_t *fw_vendor = (efi_char16_t *)(unsigned long) > efi_table_attr(efi_system_table, fw_vendor, sys_table); >