From patchwork Fri Aug 9 23:26:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Franz X-Patchwork-Id: 2842264 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D143D9F294 for ; Sat, 10 Aug 2013 00:14:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF63C2022D for ; Sat, 10 Aug 2013 00:14:41 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E6FDC20225 for ; Sat, 10 Aug 2013 00:14:40 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7w7E-0001Z3-BF; Fri, 09 Aug 2013 23:29:06 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7w6a-0003lA-5u; Fri, 09 Aug 2013 23:28:24 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7w5J-0003Yw-NT for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2013 23:27:08 +0000 Received: by mail-pa0-f51.google.com with SMTP id lf1so2642366pab.10 for ; Fri, 09 Aug 2013 16:26:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gEh7cwg7iZU7hKCpWWs89/ljenFnZQUXtce/EyXa+Nc=; b=jWW99Q0JYnKi8qVyn3v0gNe13Mh2jgOb1Cq/AF6AyV8bC8RAxw7kyzxHbDBL0SpuIS a78fsri/28AEjSPOpgcrOg0kP611KzDwBKd0KEzejX3u0AyVT2GKGhNC1Fqb1lJviA9T 4vL3XEpYeZg93IdxqTBJMbL2a10h2pPQ6s+/Tyu84R8+zkQhIRN4isUJOEaKMLE/BwcY NYOh1bmosshAP4aTVVGiXIrFEPA9W0GkGhtxjt6EXcqXVKWgesEMe3E+PSkg4LSJrYgh TNSnpo5un7eLAxK6O7MqSIuvC10+DOwYF9XfSUrIaLkXU+dAEK4FLjH0g+keClGOM+uL Tyww== X-Gm-Message-State: ALoCoQnlqAdNFwu2f3vzsE7/gipfxyvS/LuhgjuXqgoz5B1EQcw4M8zMNbKoTQe0l95ZMbXpXC+G X-Received: by 10.68.216.33 with SMTP id on1mr13779183pbc.107.1376090804027; Fri, 09 Aug 2013 16:26:44 -0700 (PDT) Received: from rfranz-i7.local (c-24-10-48-230.hsd1.ca.comcast.net. [24.10.48.230]) by mx.google.com with ESMTPSA id ue9sm24823913pab.7.2013.08.09.16.26.42 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 16:26:43 -0700 (PDT) From: Roy Franz To: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, matt.fleming@intel.com, linux@arm.linux.org.uk Subject: [PATCH 10/16] Move EFI_READ_CHUNK_SIZE define to shared location. Date: Fri, 9 Aug 2013 16:26:11 -0700 Message-Id: <1376090777-20090-11-git-send-email-roy.franz@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376090777-20090-1-git-send-email-roy.franz@linaro.org> References: <1376090777-20090-1-git-send-email-roy.franz@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130809_192705_903497_BD9194AA X-CRM114-Status: GOOD ( 10.38 ) X-Spam-Score: -2.6 (--) Cc: Roy Franz , dave.martin@arm.com, leif.lindholm@linaro.org, msalter@redhat.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This #define is only used the the shared code, so move it there. Signed-off-by: Roy Franz Acked-by: Mark Salter --- arch/x86/boot/compressed/eboot.h | 1 - drivers/firmware/efi/efi-stub-helper.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/eboot.h b/arch/x86/boot/compressed/eboot.h index faa0bdf..bafbd94 100644 --- a/arch/x86/boot/compressed/eboot.h +++ b/arch/x86/boot/compressed/eboot.h @@ -12,7 +12,6 @@ #define DESC_TYPE_CODE_DATA (1 << 0) #define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT) -#define EFI_READ_CHUNK_SIZE (1024 * 1024) #define EFI_CONSOLE_OUT_DEVICE_GUID \ EFI_GUID(0xd3b36f2c, 0xd551, 0x11d4, 0x9a, 0x46, 0x0, 0x90, 0x27, \ diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware/efi/efi-stub-helper.c index 0f4d6e6..b707a9f 100644 --- a/drivers/firmware/efi/efi-stub-helper.c +++ b/drivers/firmware/efi/efi-stub-helper.c @@ -9,7 +9,7 @@ * under the terms of the GNU General Public License version 2. * */ - +#define EFI_READ_CHUNK_SIZE (1024 * 1024) struct file_info { efi_file_handle_t *handle;