From patchwork Wed Dec 26 18:57:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 208202 X-Patchwork-Delegate: sjg@chromium.org 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 71C3B2C0087 for ; Thu, 27 Dec 2012 06:01:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AF37F4A0F5; Wed, 26 Dec 2012 20:01:25 +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 ys3HvsqTu3YA; Wed, 26 Dec 2012 20:01:25 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3D1EF4A124; Wed, 26 Dec 2012 19:58:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62EFD4A08D for ; Wed, 26 Dec 2012 19:57:55 +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 k-8OK271DG7O for ; Wed, 26 Dec 2012 19:57:54 +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-gh0-f201.google.com (mail-gh0-f201.google.com [209.85.160.201]) by theia.denx.de (Postfix) with ESMTPS id EAC0F4A0A8 for ; Wed, 26 Dec 2012 19:57:36 +0100 (CET) Received: by mail-gh0-f201.google.com with SMTP id z19so615300ghb.2 for ; Wed, 26 Dec 2012 10:57:32 -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=+dfPzAqlToljwqA5Se9lujmnuf8q8khKL652AKM8ZJ8=; b=lHt2IEMS18ZVB9STz8/ZijEiw5xyjhbt9KEcTr0fjuwpNsYrdILVAK8JX0Un3GwK1J r1P9PVJNMm5QbUDl3LpKBdloZHC0HVEton51M5/2exAaKexP0cA0ZAHOaak0uV1x4+MN zZKVKCXiBROo17I/vz5ohfhGZEcK7PXuJXz5+WNI7zu9+839ax4m2C3HO/S34CxqOari C7vxrIrcMjCpHv8cs8z76nppBc/8WDob1ebjtf2f1QbBdFJUsdppPphbUHyyWr0ghPMG 18UNrp0gLY/otd/4xcmzEmGIvpwN4sxELOStR/mikt105M2Wq/VpHhN6eFCOfHyyMhut auDw== X-Received: by 10.236.91.104 with SMTP id g68mr11326835yhf.29.1356548252007; Wed, 26 Dec 2012 10:57:32 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id s58si2351040yhi.6.2012.12.26.10.57.31 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 26 Dec 2012 10:57:32 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id C366E100048; Wed, 26 Dec 2012 10:57:31 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 85153160DA6; Wed, 26 Dec 2012 10:57:31 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Wed, 26 Dec 2012 10:57:08 -0800 Message-Id: <1356548233-5570-16-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1356548233-5570-1-git-send-email-sjg@chromium.org> References: <1356548233-5570-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQk5JwOZdcbBybipSEV2xcTus8a2FXAm+hF4VEK1C94t3ZBVdS2/3vhkVuOiRMcN42sDUnhhapMwatfcWW4EbZgPsegtcGX8D+huaZBaXHDN4Y6oPww0DdvDE1gxERyeSlXADE3XLbLuawLV1SVh1jqu5BmXsCDi8BXZlzkOiIaj4mprEC3ejIhcy18mu6C3/73uXf0P Cc: Tom Rini , Joe Hershberger , Kumar Gala Subject: [U-Boot] [PATCH 15/20] 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 Acked-by: Marek Vasut --- common/image.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/image.c b/common/image.c index 95498e6..936b08c 100644 --- a/common/image.c +++ b/common/image.c @@ -75,6 +75,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", }, @@ -161,8 +163,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