From patchwork Wed Aug 7 03:45:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Franz X-Patchwork-Id: 2839752 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 E14A19F479 for ; Wed, 7 Aug 2013 03:48:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15A11201CD for ; Wed, 7 Aug 2013 03:48:16 +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 DBA20201CB for ; Wed, 7 Aug 2013 03:48:14 +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 1V6uiO-0003QG-N6; Wed, 07 Aug 2013 03:47:13 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6uhy-0001Ok-EK; Wed, 07 Aug 2013 03:46:46 +0000 Received: from mail-yh0-f51.google.com ([209.85.213.51]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6uh7-0001Dv-2Q for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2013 03:45:59 +0000 Received: by mail-yh0-f51.google.com with SMTP id 29so497926yhl.24 for ; Tue, 06 Aug 2013 20:45:36 -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=1W581DTHfM0CnN6pLTkT7OsZpbYRKdd9jB0+Oh6nZgw=; b=XehfA3cswAv55rET8urQH/hBfR2GF7pcan+nGWNA5oblTrzQ/UVjU9bqMmRx22BCmH vSB7ntKRHubrOuPTHuvECVMaw9m9YDcYAtv6VGEXhhVj30MwuQfUntH0/wB5W0tqYFg7 Z3nm7wzEe74EQ1dhT2+KKyuYO8g4z9Uv7wzr/xxwxXSX8N8YgQ5xAEAo3U7oqowu8Vqt +537zCo8ZaP7IZ5CedHMBGA999smPNYvTMBOghVUUXM5u8CqH/EDjJx/+DaffPYOSptS 1u2h0URiVo/siM81PrncMvpD5v2aj1Ud5dY8uiXDJ8MAjh8h8XUQ4EQLdrw1osaXtXtu OhkQ== X-Gm-Message-State: ALoCoQnGu6W6RgQtNwti8cny5PbRKq1Gb4BFU1k/9AiVpf5yyZ/zSmF2jnLdv/Svx9ALXl+zxkpQ X-Received: by 10.236.69.137 with SMTP id n9mr792280yhd.40.1375847136282; Tue, 06 Aug 2013 20:45:36 -0700 (PDT) Received: from rfranz-v430.caveonetworks.com (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id s65sm6814380yhs.14.2013.08.06.20.45.34 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Aug 2013 20:45:35 -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 11/17] Move EFI_READ_CHUNK_SIZE define to shared location. Date: Tue, 6 Aug 2013 20:45:07 -0700 Message-Id: <1375847113-24884-12-git-send-email-roy.franz@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1375847113-24884-1-git-send-email-roy.franz@linaro.org> References: <1375847113-24884-1-git-send-email-roy.franz@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130806_234553_285612_AD5193C0 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: Roy Franz , dave.martin@arm.com, leif.lindholm@linaro.org 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 --- 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 0a41638..521a4c4 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;