From patchwork Mon Feb 25 03:33:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 222832 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5AF822C02AC for ; Mon, 25 Feb 2013 14:36:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6A8434A301; Mon, 25 Feb 2013 04:35:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id APqL982s4Irv; Mon, 25 Feb 2013 04:35:53 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7962B4A17E; Mon, 25 Feb 2013 04:34:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A6A34A10A for ; Mon, 25 Feb 2013 04:34:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zl++AiI2NQLD for ; Mon, 25 Feb 2013 04:34:08 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qa0-f74.google.com (mail-qa0-f74.google.com [209.85.216.74]) by theia.denx.de (Postfix) with ESMTPS id 3790A4A119 for ; Mon, 25 Feb 2013 04:33:56 +0100 (CET) Received: by mail-qa0-f74.google.com with SMTP id o13so270294qaj.3 for ; Sun, 24 Feb 2013 19:33:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=zoifRS/3HY5G5C31PHXWgGVA88mSghQsgEHQ3qmrFKo=; b=YmJfxSbEvf7B9CJNoEilXQX8jqFzYaSnfowjyI5IiQuvSJ3bNkq95+9OJuBNQ6Y6jq 5MgIeVW6f79On1myFwNicnqdnXmNZGgwLTaGO9qEo37yZ++nTNkbzXxHWJq7iNipXEFq Th6OKJ+JbaNtnmHfo/3GvQaRDQcCgDQWB18EkyQmzv52fBjBsEXr6Dfe/BWTHeOCuVss 110F0gsQ2gPMNiW7aJytAcfsunLg9akvEidv9TQgLTmQz+L5RVIOvziyVXg22a5AlWTX XoBO3hTEM6mFush9vOB+/aWGMRHbOm7q3lcPn/boDJo8gjDf0QaQaj44T53H7sqRbQ+v /1rQ== X-Received: by 10.236.181.34 with SMTP id k22mr6166684yhm.7.1361763235158; Sun, 24 Feb 2013 19:33:55 -0800 (PST) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id k11si409520ano.3.2013.02.24.19.33.55 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Sun, 24 Feb 2013 19:33:55 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 0541731C27E; Sun, 24 Feb 2013 19:33:55 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id D8CE0160537; Sun, 24 Feb 2013 19:33:54 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Sun, 24 Feb 2013 19:33:25 -0800 Message-Id: <1361763213-31183-16-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1361763213-31183-1-git-send-email-sjg@chromium.org> References: <1361763213-31183-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQm0munb4XAipkuqKDYeybL18VzpQvDc1Ll7gZ2kUy4GDPQ5OLg8CgpdUc74p9wIqaZh9QmZzvWiC4CKm1TQIjKOxESSW5s/xJqvtjlpt91XvriBVZ6yjdMSdwOG+XeAgCz2hIvsP8Si5Wd6EbZtktDKMn2uKhxlvtm+PCSANQ2vR8JQEQkqbSc872aCCadosonUgYq8 Cc: Tom Rini , Joe Hershberger Subject: [U-Boot] [PATCH v3 15/22] image: Use crc header file instead of C prototypes X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de We have an existing header which the crc32 definitions, so use it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/image.c b/common/image.c index ae1a9d3..6afbb40 100644 --- a/common/image.c +++ b/common/image.c @@ -74,6 +74,8 @@ static const image_header_t *image_get_ramdisk(ulong rd_addr, uint8_t arch, #include #endif /* !USE_HOSTCC*/ +#include + static const table_entry_t uimage_arch[] = { { IH_ARCH_INVALID, NULL, "Invalid ARCH", }, { IH_ARCH_ALPHA, "alpha", "Alpha", }, @@ -160,8 +162,6 @@ static const table_entry_t uimage_comp[] = { { -1, "", "", }, }; -uint32_t crc32(uint32_t, const unsigned char *, uint); -uint32_t crc32_wd(uint32_t, const unsigned char *, uint, uint); #if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE) || defined(USE_HOSTCC) static void genimg_print_time(time_t timestamp); #endif