From patchwork Thu Mar 8 08:00:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 130972 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp6175118lja; Thu, 8 Mar 2018 00:02:26 -0800 (PST) X-Google-Smtp-Source: AG47ELs8jW4QNrmkjE8wcCPd1yMEfvgWKw1IGxIHoxwai2ToMhSBdu7bSpBIXTselwoayuNmapTj X-Received: by 10.99.152.10 with SMTP id q10mr15142939pgd.62.1520496146151; Thu, 08 Mar 2018 00:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520496146; cv=none; d=google.com; s=arc-20160816; b=gJ2VvrO2PzHOlEF+RpeUBq/rSD/9D0EAMzbVGBrPmCItNRpiL4crS62f/SYKKGcwzM T4SW7XdEuNENkcbCnHMB5hswoYZZMH61IdqVw0wjKL9IgHztvH+L18RmwsHy6dbPGVZX kow1gyzcuXvj56KK5aqm7zgd5JtRi1QQYtRhmyz1Nut6nh10+wRZVyZn13dyg2A84y53 diuwjCmSFCotmuM43/CZG2Sjno+pluomIgkj373Z+W83GEv+hkkYbmuflyyMeQOGUEl7 OWSVQxnxbB8TrROm2ZjQcSVYxVnBeYVs7G+7xAbJYCdar2UBOIVxGtyvL+NvAegdm2fb 9Qjw== 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=Gvl45ns3L8l/RxScRBPxwSlq2lbhJKYQisQf+2okqAw=; b=hLKA7tEOKuT+x3MELAgvzKmqF/n/VRPQRubnCu5YxNg7PTOAozZZQnLW30M+VvcHrE k19fC4NZSELnldQDJmsE9vIDjmB/Qk6zO9Id2H1GuXDVJ72KupphuKsMTkhQs9ggu/Rv nP6IkmGMs4jVjDBAaCCTVoi4L88S4edJ5hKIviQudhOIAcCmhDcGJawkXzSh5se6hj1p ET/km8ntxqHNCo31d5wLTXFeLXjy2nGKYOrgZXGZs576NDIJQ0MsNSw91JhgH3vxZVoj 4K8erlsWraDkRoe15zxJH37r845iWnhcPCQEkJ3PVNDdrfh0YZtJ/PsEH8RPk0vLYmAn AjrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OBza15zg; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (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 u23si12462852pgv.121.2018.03.08.00.02.25; Thu, 08 Mar 2018 00:02:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OBza15zg; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755221AbeCHICZ (ORCPT + 2 others); Thu, 8 Mar 2018 03:02:25 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:43307 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755188AbeCHICX (ORCPT ); Thu, 8 Mar 2018 03:02:23 -0500 Received: by mail-wr0-f193.google.com with SMTP id a63so1055437wrc.10 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=L7rRskSPoL3iy2/suE+Z28OZCTx2CzlWFYYYBgoXPXUl6tGA1/BBnhFcUK7dhzpaJs 5pM81uqL5Cneb8OeeSos566sNVGUpBW7SAkQHzsWEf062i4HyPVmdqEwsGXdYDZs2/T9 IQtdcSDJ9TWWNYoWPi4htPtEDVLeOvOQxRFlF9lbbfWiUzGZk4wfmePAZzPP/H4RYO3l E1ktGpYe1S9rC2MZc+lY5dD8xeKCavKMKWjkbp4y0mF1uk+dZWd8BEJ36sTJaE5i4jmH JwSz72UJRo1BLQGJkIk724c0pgIDVNEWR8qD8JhSDeQbl4frOaWm5err0d40/1HO/9AI Sb4Q== X-Gm-Message-State: APf1xPAjEzEmxfdNu2wm4+fwkDlfrTTi118eCEQlf5ybdt15hLNcaZZh ntr2/LUvbElYy+fqT0V69QgGPgWB48Q= 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-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@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(-) -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);