Received: by 10.223.185.111 with SMTP id b44csp80038wrg; Fri, 9 Mar 2018 01:18:11 -0800 (PST) X-Google-Smtp-Source: AG47ELtN3U2v0QE3n7SApoF3wU/WfXkR3Dg12Ls5K62ekYQHGRBrdPW/MW5UfjwUoOWDYPMFGqvy X-Received: by 2002:a17:902:b697:: with SMTP id c23-v6mr26987356pls.328.1520587090969; Fri, 09 Mar 2018 01:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520587090; cv=none; d=google.com; s=arc-20160816; b=YuT/qNC6nGcu+yCqO/rpIbKF30z7CrKIqbeQ7oeuXxJcjQf1K9+jYRfyJ/TEDye3S6 g5Z4saPIocRKTPQ/Ul6FYvvMgAJ3nhLEWEJU/Id2SR5W/+9FjFQ6nCvCwVRpJ4F1unUh e2SC5ypOQSE0moTc7oFseDGiGC2dXMUzE0icoxetAdrZ1BmNklHHKAzcLshA/d3eXwfp iBPKXLzk5BDoQ9vY3bUzkLeqRKR2c8batfRByOvry1UKsudCn6S5fvEJ6yC1aqWgkS++ DqsAp8cHzBys/xigxOwXjqXarUy55V7be5QPYNN82p9CvnJhEmhdEeQqfDO4cv0nB5W1 M1eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=QnM4ZLldZmcOEy6vPxnSjYutHvU/y0eW7wG3XuQdpTk=; b=deZMetQlBiMLE8/tMYS46w9Nl8iWSBWc/e5HermuiLEWcax4+bhymYva9FzgNtL97r gj5kH3//OmfcXNh2X56Rkv2xinDD1mrCORZiMrQKM+SlPQGDqU9eCcqRTz+iFpuN7GMu Ji/mubA9dQEYudLufNkcoizOftKjr6An1hMjnuiUF6v6qvGKnOQw/xJcB0Xr+8BOmMzM tCxQTjRIyNOwdotyzrvjWZiJjW3JLfrxiLL06xn2/RsHVzdnTxXC6gc10j6d1kyY774+ zqirMnU6iZNmT7ErkbYrZldIHlVmS6pF/6fPyc6rkx/YyT89ZzKygLWVx0wj/RLpBZQC aSsg== 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 z2-v6si529307plk.670.2018.03.09.01.17.56; Fri, 09 Mar 2018 01:18:10 -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 S1751166AbeCIJQx (ORCPT + 99 others); Fri, 9 Mar 2018 04:16:53 -0500 Received: from terminus.zytor.com ([198.137.202.136]:37155 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbeCIJQv (ORCPT ); Fri, 9 Mar 2018 04:16:51 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w299GSM7001046; Fri, 9 Mar 2018 01:16:28 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w299GSOm001043; Fri, 9 Mar 2018 01:16:28 -0800 Date: Fri, 9 Mar 2018 01:16:28 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Colin Ian King Message-ID: Cc: torvalds@linux-foundation.org, ard.biesheuvel@linaro.org, colin.king@canonical.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, linux-kernel@vger.kernel.org Reply-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, ard.biesheuvel@linaro.org, torvalds@linux-foundation.org, colin.king@canonical.com In-Reply-To: <20180308080020.22828-13-ard.biesheuvel@linaro.org> References: <20180308080020.22828-13-ard.biesheuvel@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi: Make const array 'apple' static Git-Commit-ID: f779ca740f25c8a6a72d951334f9efc3158a318b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: f779ca740f25c8a6a72d951334f9efc3158a318b Gitweb: https://git.kernel.org/tip/f779ca740f25c8a6a72d951334f9efc3158a318b Author: Colin Ian King AuthorDate: Thu, 8 Mar 2018 08:00:20 +0000 Committer: Ingo Molnar CommitDate: Fri, 9 Mar 2018 09:30:35 +0100 efi: Make const array 'apple' static 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 Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20180308080020.22828-13-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar --- 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 }; efi_char16_t *fw_vendor = (efi_char16_t *)(unsigned long) efi_table_attr(efi_system_table, fw_vendor, sys_table);