From patchwork Wed Apr 8 12:12:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 459227 X-Patchwork-Delegate: marek.vasut@gmail.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 0EEBA140134 for ; Wed, 8 Apr 2015 22:12:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03B51A7440; Wed, 8 Apr 2015 14:12:44 +0200 (CEST) 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 XYpaN529vHg2; Wed, 8 Apr 2015 14:12:43 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16DA6A7420; Wed, 8 Apr 2015 14:12:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DF695A7420 for ; Wed, 8 Apr 2015 14:12:39 +0200 (CEST) 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 7xNWbIv3GDxE for ; Wed, 8 Apr 2015 14:12:39 +0200 (CEST) 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 atrey.karlin.mff.cuni.cz (atrey.karlin.mff.cuni.cz [195.113.26.193]) by theia.denx.de (Postfix) with ESMTP id A56F6A741C for ; Wed, 8 Apr 2015 14:12:39 +0200 (CEST) Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id EA65481F2C; Wed, 8 Apr 2015 14:12:38 +0200 (CEST) Date: Wed, 8 Apr 2015 14:12:38 +0200 From: Pavel Machek To: marex@denx.de, dinh.linux@gmail.com, dinguyen@opensource.altera.com, sr@denx.de, trini@konsulko.com, vbridger@opensource.altera.com, clsee@altera.com, u-boot@lists.denx.de Message-ID: <20150408121238.GA10371@amd> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [U-Boot] socfpga: missing DECLARE_GLOBAL_DATA_PTR in timer.c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" for A in `find . -name "*.c"`; do if grep DECLARE_GLOBAL_DATA_PTR $A; then echo -n; else echo $A; fi; done reveals a few files that probably should have DECLARE_GLOBAL_DATA_PTR. This fixes it for arch/arm/cpu/armv7/socfpga/timer.c . Signed-off-by: Pavel Machek index 253cde3..2dd8376 100644 --- a/arch/arm/cpu/armv7/socfpga/timer.c +++ b/arch/arm/cpu/armv7/socfpga/timer.c @@ -8,6 +8,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + #define TIMER_LOAD_VAL 0xFFFFFFFF static const struct socfpga_timer *timer_base = (void *)CONFIG_SYS_TIMERBASE;