Received: by 10.223.185.111 with SMTP id b44csp96151wrg; Fri, 9 Mar 2018 01:38:15 -0800 (PST) X-Google-Smtp-Source: AG47ELt6rouwwIaJbOgcbVU8jzaHNIrQaQModgCF8K5ApS3V3Dtp9MFjJiKtPBLwXnlAuvIcizoz X-Received: by 2002:a17:902:5269:: with SMTP id z96-v6mr27153054plh.385.1520588294986; Fri, 09 Mar 2018 01:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520588294; cv=none; d=google.com; s=arc-20160816; b=r8CYyh3dhXpKiQX5wql9sZCOzEMVVB0n/kRX6MB4TqcJQE/POa807i1EXbQNTAiagK WGb27UI/k8lzUONagmjRUrt+Yslrqs1tdGHT69skfUx7x93ASKiHZ/anT706HGKRODV9 ilm0QS+hZc8Gy2d5i1FMClHSrxEUhRy9xn/YptnDNV6eNCWT1xfSMNwyhdf73+2htPIy uXQfcdFT3l4naGprsDHZPr45SWKbUH7dMFvwxSaWZWN7Zqy7iuQCsIdd589izcXmVDpA RrnNA5BXH/m0oYGNBtJMqoOI1rQkdLR+h5om7Y1mwdQn8z/xM3MAgI48H38ZpSemg4K/ oilw== 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=bvvJoNfIvs4o9JnBAnuJ4Q3vWIY6dol2sBqsximlN+A=; b=AiJvuEGFBXThYZZKOaiccG73UB4/2JlmhZMRQCsSE9eJR5tF/y/OS89thlHBbqVo2o +416wvMKFfGqt+bXU2O3+coP9Tb4Dc3E00PuejPvlyNE1TSlzYT0NJSCI3nF0vTHoMOj 1LnLj+Eeyw7QUTWW4hKyTn/4nyHvqrdHhi6U4NF4vrMv1a5IbczwFiGvPDc+KWGpWXjo UOio7QH2mdexhjN1R3qW88F/9B6z7x7wUouwiz1q5pkup/4eXRjH3LuJ06Ajb1AdCvTX a4r231zB+SKf/7aYPzHtbiPWo5AbFDON68H/X43Uq6BQrSFOVoYw+6LzuNtMnemTt7zb BZSQ== 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 w1si487093pge.362.2018.03.09.01.38.00; Fri, 09 Mar 2018 01:38:14 -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 S1751068AbeCIJhG (ORCPT + 99 others); Fri, 9 Mar 2018 04:37:06 -0500 Received: from smtprelay0226.hostedemail.com ([216.40.44.226]:44600 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750883AbeCIJhF (ORCPT ); Fri, 9 Mar 2018 04:37:05 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 05E9C180A8124; Fri, 9 Mar 2018 09:37:04 +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:3354:3622:3865:3866:3870:3871:3872:3874:4321:4605:5007:6119:7576:7903:9121:10004:10400:10848:11026:11232:11657:11658:11914:12043:12296:12438:12555:12740:12760:12895:12986:13069:13311:13357:13439:14181:14659:14721:21080:21433:21451:21627:30012:30054:30060:30065:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,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:20,LUA_SUMMARY:none X-HE-Tag: spoon03_206a9170b4c39 X-Filterd-Recvd-Size: 3125 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Fri, 9 Mar 2018 09:37:02 +0000 (UTC) Message-ID: <1520588221.11634.26.camel@perches.com> Subject: Re: [PATCH 12/12] efi: make const array 'apple' static From: Joe Perches To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Colin Ian King , Linux Kernel Mailing List Date: Fri, 09 Mar 2018 01:37:01 -0800 In-Reply-To: References: <20180308080020.22828-1-ard.biesheuvel@linaro.org> <20180308080020.22828-13-ard.biesheuvel@linaro.org> <1520507105.11634.5.camel@perches.com> 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 Fri, 2018-03-09 at 07:44 +0000, Ard Biesheuvel wrote: > On 9 March 2018 at 07:43, Ard Biesheuvel wrote: > > On 8 March 2018 at 11:05, Joe Perches wrote: > > > 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. > > > > > > > Why would that be any better? It'd be more like the the style used in the rest of the kernel.