From patchwork Tue Feb 27 21:45:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 129870 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp297177lja; Tue, 27 Feb 2018 13:46:31 -0800 (PST) X-Google-Smtp-Source: AH8x226bXpMTinsATMGbkLJnOn/N4Wu5chGlkzhzu5sfmsWzFY3V0Z5PGkvVvDgW1SfI/gMZVeYO X-Received: by 10.80.230.12 with SMTP id y12mr19675533edm.203.1519767991441; Tue, 27 Feb 2018 13:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519767991; cv=none; d=google.com; s=arc-20160816; b=hXplcaif00DLaPt8gtQqNAW3P55S4r7is72aFp58Mdzz/6rbiq84hHJIilrRsYqEjP SBDH/ni7jXlKAgtplcr4Ry8roMa3WLnYbJqlSvAquccgO3ncAVpQ9OmJdsFwjqZc+gtp Q1DWu088JdyOuyYreklfL9dmYbpjCig8HRlg9DtQC4Vj1hTyfPla1KSI25edEGYnl29x Ov2Mt3Z8W656CijuPdyQ4iSwIpEP1GVGCpQj4pFiXDjiF47fYhev4BbxIVJXbrg/beqo LBNI0kTyOBO3SQn/P41QRSVYYaVhhC/+VKeTpou3WIoxfTXuPNV4tWmGtf6QtFGBSldD oreA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=jZgsK2fbpEnwR3akgKyUbjV/37lXdaZxisLV3ULvyYk=; b=pIJEzfUyHoO/qtZtlx9iwRPo2mN2CwntCKC7XmDMtAvmYgHIo3YcMIu7ghmKybAZE9 XjMwK9fm8I6CG/FzFTALsP/4UAluQD7bZzWKtdfZINGKaCc5nz4ksw/3extNbKB3Bx21 7lrneGWGke4/B5sPzRnvgzNIgQNvemAwc8ZbbgPBjBxrvbsNlqbrnxogYqDutIiEeDre jxLZ4ybJCzFwcbTYvaNA59vizPqTi+FpJUracXxPvvN5LD92iz8Pyp2bAkwsCsuMI9Zs t+Det/n8RPT60Q2Wu+MpvOcqSNCFo9nLzh6Q/LYuiWUxtQm6hcw1/Mj4AlVlqJFMgnbT 1dnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=j9tNsayG; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r46si371480edr.56.2018.02.27.13.46.30; Tue, 27 Feb 2018 13:46:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=j9tNsayG; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 590DBC21FBB; Tue, 27 Feb 2018 21:45:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 19DB7C21F9E; Tue, 27 Feb 2018 21:45:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AAC4FC21E45; Tue, 27 Feb 2018 21:45:09 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 22358C21DCA for ; Tue, 27 Feb 2018 21:45:09 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id 188so1344779wme.1 for ; Tue, 27 Feb 2018 13:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tB4WN45T8GjTwsmUsIO3RKnPCOir7M2ZWNMLcqBLNhc=; b=j9tNsayGxse9zixJIFj/qgB363/QeKzDBI+PKVgMejfmWnsTNZpXhcrJ8HQy30Mwkh LQml2MeAEKSNoH6Pyyc08Ajb3opzOVlX/2S/yByEBohPJ2l7qklxZ/4gi/hw5E1YR8d4 STWc9Qs6Wc7sdkJewUzLhoOXN9jkKlAyDJQ1I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tB4WN45T8GjTwsmUsIO3RKnPCOir7M2ZWNMLcqBLNhc=; b=IHPHWO6QXxLLNJbYF6x5ihS8K9Mn2v1+fEph05yCDh0jkOj8tEXNz3RYuDJQ7qxAlC KOCOQh7tcCHlkJ8d7/m6F3ln+8dTkH491Vz27wF6A/z/3Eh0cjzkuxZvgXcJUCdPXVqc g1l3l5pBxRR/AUyvC9UQ2rJZ905GMCA1dBISk7T5ft1AbUKRZfRYtCzGHTLlrxoYmfj6 kZdBtjbgO1l/JYqCMTR7qCS3a9x9CyUtH5EMUp5+7n6Fu7m7h28x7+oV9cpScGLh4nX8 aBc0sfou5ZXAyY0tdV7gGTSK0bCo8kseVyoDwogi8GlQ6uvnFDWrCA06moXEgdRkkF+L rL7Q== X-Gm-Message-State: APf1xPD6iCy7HxgA4bXZ0/J6I3mVN9/7Bl+e2iP9DC2M0aBXf2olsTkq cCHvTyWdmWOLeP0R/hvCjqH8YcMPHDY= X-Received: by 10.28.230.68 with SMTP id d65mr10278730wmh.13.1519767908367; Tue, 27 Feb 2018 13:45:08 -0800 (PST) Received: from localhost ([195.238.92.76]) by smtp.gmail.com with ESMTPSA id 69sm540528wmp.36.2018.02.27.13.45.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 13:45:07 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 27 Feb 2018 23:45:03 +0200 Message-Id: <20180227214504.32572-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180227214504.32572-1-semen.protsenko@linaro.org> References: <20180227214504.32572-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Cc: Marek Vasut , Tom Rini , Ruslan Bilovol Subject: [U-Boot] [PATCH 1/2] omap: Fix AM335x build with enabled fastboot flash X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When enabling CONFIG_FASTBOOT_FLASH in am335x_boneblack_defconfig, next build errors and warnings occur: arch/arm/mach-omap2/utils.c: In function ‘omap_set_fastboot_cpu’: arch/arm/mach-omap2/utils.c:26:16: warning: implicit declaration of function ‘omap_revision’ [-Wimplicit-function-declaration] u32 cpu_rev = omap_revision(); ^~~~~~~~~~~~~ arch/arm/mach-omap2/utils.c:29:7: error: ‘DRA762_ES1_0’ undeclared (first use in this function) Include asm/omap_common.h explicitly to avoid those. Signed-off-by: Sam Protsenko Acked-by: Lukasz Majewski Reviewed-by: Tom Rini --- arch/arm/mach-omap2/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index d11670c0ee..7d1ca274bf 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -7,6 +7,8 @@ #include #include #include +#include + static void do_cancel_out(u32 *num, u32 *den, u32 factor) { while (1) {