From patchwork Tue Oct 16 19:20:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 191857 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 097422C00AA for ; Wed, 17 Oct 2012 06:20:54 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TOChA-0002Wu-Qg; Tue, 16 Oct 2012 19:20:52 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TOCh8-0002Vq-UD for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:50 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TOCh8-0005lE-PU for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:50 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 03/11] lib: fwts_acpi_tables: constify func arguments where appropriate Date: Tue, 16 Oct 2012 20:20:40 +0100 Message-Id: <1350415248-16965-4-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350415248-16965-1-git-send-email-colin.king@canonical.com> References: <1350415248-16965-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Ivan Hu --- src/lib/src/fwts_acpi_tables.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c index f388cdd..e225a37 100644 --- a/src/lib/src/fwts_acpi_tables.c +++ b/src/lib/src/fwts_acpi_tables.c @@ -157,7 +157,8 @@ static void fwts_acpi_add_table( const void *table, /* Table binary blob */ const uint64_t addr, /* Address of table */ const size_t length, /* Length of table */ - fwts_acpi_table_provenance provenance) /* Where we got the table from */ + const fwts_acpi_table_provenance provenance) + /* Where we got the table from */ { int i; int which = 0; @@ -209,7 +210,7 @@ static void fwts_acpi_handle_fadt_tables( fwts_acpi_table_fadt *fadt, const uint32_t *addr32, const uint64_t *addr64, - fwts_acpi_table_provenance provenance) + const fwts_acpi_table_provenance provenance) { off_t addr; fwts_acpi_table_header *header; @@ -307,7 +308,7 @@ static int fwts_acpi_load_tables_from_firmware(void) * Loading tables from file may result in data without an originating * physical address of the table, so fake a unique 32 bit address for the table. */ -static uint32_t fwts_fake_physical_addr(size_t size) +static uint32_t fwts_fake_physical_addr(const size_t size) { static uint32_t fake_phys_addr = 0xbff00000; uint32_t addr = fake_phys_addr;