Received: by 10.223.185.116 with SMTP id b49csp6023681wrg; Thu, 8 Mar 2018 00:04:15 -0800 (PST) X-Google-Smtp-Source: AG47ELuc1Mud5/soVD2LwiaHU1BzHqNs1VgcQvsVlQP+HpyRqFMePpJKBsKx0DfkmmukeJDnXWE5 X-Received: by 10.98.75.129 with SMTP id d1mr25596864pfj.19.1520496255545; Thu, 08 Mar 2018 00:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520496255; cv=none; d=google.com; s=arc-20160816; b=F4pgmnfxjyr7W/iTmhOTLoHIHQWPUO27YG6121o4XnOrC3TqDSS0cYCk+lRiIvMvhI AoAcaUdc8+DZeuxdK8c+bKmziPw0yPJU0G3wwxm++IIMsWgqHsoMBNLYYV63YN2djHxx oK/1z/s4XBnklMvMHKE0EVLz/eYn0s1oI9bZX4LppJVreAXiumTEge4Vk7oYsdioRRvf sbKDeuYbfQpfniTmsXe68sI+jSUC3gzBfcxrddXW0tjGiGA/rC/OeENdp36Ej5ts/L2K P5I1C/mW45ouxeGO5TPoZ1svS0U0QCK23/HzVumJgFSKWNNOh+z+YAZNGv68YTc7nZO8 2XcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=DryN1MulhEi08ukDo8t3pz2u/vhKTbPyQLj9sKDCE/U=; b=VoQef3Oa3Obmrtoh2/RUHjN1spqmTRmGFFQPCupuS4nqIto39HNEblUlbStVhHBM08 YxI2kZqGEGeYmW3/A7aabnvzdn59jWnYET+L65GR2BIo9GAfRwcKxDNbOEDvqAH9amKj Ql6e6El1pHqoHbFteiJf+A+F1J1UtFIHVqm5pFCl7kVR7U2zvo0rjTVx3CPpD4W25UEj tHaLTDqz6vrXDcGFyPN6GuR8eq7krfKoyKhtM5DPfN1fVY336yuRBPz6eYExIwf3AFdU 8sT7601vdFMTphJJU0TWJXC67YBhrJq3R7JVwbspJdpVCfZ2cbaCXV2dOTdu8XKI/jwZ PhlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OBza15zg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8-v6si14095309plv.166.2018.03.08.00.04.01; Thu, 08 Mar 2018 00:04:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=OBza15zg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755261AbeCHIC0 (ORCPT + 99 others); Thu, 8 Mar 2018 03:02:26 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:46382 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755181AbeCHICX (ORCPT ); Thu, 8 Mar 2018 03:02:23 -0500 Received: by mail-wr0-f194.google.com with SMTP id m12so4658466wrm.13 for ; Thu, 08 Mar 2018 00:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DryN1MulhEi08ukDo8t3pz2u/vhKTbPyQLj9sKDCE/U=; b=OBza15zgnQJcvFQ/8CXon92dBw2mPaM409cQGB9M+WnbvWwZGtMIH58iEcWQGxw4E/ 2X0C7blF6oQGEVyIwtthgPxqCePSvvOjv5jwFHVyPsHqweMKlHWOt+R4BhhiZQRhozZa oKBDU9puEbTBfqVF3+022VfM9kjJTu6VUxIcg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DryN1MulhEi08ukDo8t3pz2u/vhKTbPyQLj9sKDCE/U=; b=bdHiMkPVpm8HVCqM1i0YZF0hegleaH3g7qjdevl5V84erVxBGsVBQRodKKb6zbeFHG P1QNd9McmicKOkp9NXNLD5fS1CnD/8Sdi92SIIXtbvxfBVZbymUbPUVkbWNTyAhAj6HY nkXnvMnDe8HSjlnsWZ8mcVvZ7a+dSCPzTCCpJaJDG4OpM1ZEkWlsDcDaUtFbvw/5AspX OLEZBg31pxmVdE5kUrlaTCqD2QBWoc6TCVRWy5YHN5B0N+LudwqOkHK2BVB20pcUBdn9 JZ3oPx7WSZn1GmAmImJxuBj//UacIsbGah5sFCWJA4f9ceLpdCmYafDvMGwtuj4DH3RT AZ7g== X-Gm-Message-State: APf1xPD9Qk94s/hOL1dq1BfdXhklm+sprN467Q861JpLMoy20X8tnvdp c9vUWpEtRoOfbNzu2iEEVfTuzg== X-Received: by 10.223.179.82 with SMTP id k18mr21875708wrd.173.1520496142016; Thu, 08 Mar 2018 00:02:22 -0800 (PST) Received: from localhost.localdomain ([160.89.73.46]) by smtp.gmail.com with ESMTPSA id e191sm11223361wmg.12.2018.03.08.00.02.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 00:02:21 -0800 (PST) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Colin Ian King , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: [PATCH 12/12] efi: make const array 'apple' static Date: Thu, 8 Mar 2018 08:00:20 +0000 Message-Id: <20180308080020.22828-13-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180308080020.22828-1-ard.biesheuvel@linaro.org> References: <20180308080020.22828-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 }; efi_char16_t *fw_vendor = (efi_char16_t *)(unsigned long) efi_table_attr(efi_system_table, fw_vendor, sys_table); -- 2.15.1