From patchwork Fri Apr 25 13:42:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 342842 X-Patchwork-Delegate: monstr@monstr.eu 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 8FF9C140166 for ; Fri, 25 Apr 2014 23:43:20 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D1089A7557; Fri, 25 Apr 2014 15:43:18 +0200 (CEST) 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 vvyAtkJK8FxG; Fri, 25 Apr 2014 15:43:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE504A755B; Fri, 25 Apr 2014 15:42:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 665D8A756C for ; Fri, 25 Apr 2014 15:42:52 +0200 (CEST) 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 Zvjen5y+Bh72 for ; Fri, 25 Apr 2014 15:42:50 +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 mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by theia.denx.de (Postfix) with ESMTPS id 4E257A755B for ; Fri, 25 Apr 2014 15:42:38 +0200 (CEST) Received: by mail-ee0-f50.google.com with SMTP id c13so2868700eek.9 for ; Fri, 25 Apr 2014 06:42:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=G/BGzpNf+FnTR5R335kiRVPgS9bbtxf21Qtb2nWqQpc=; b=DBNQCDyJCFFKx1iJ3NwTkCAZ//mJ0VRkhEU3xhLQe16Drt+kxMplxT9f6GQFNeiqqO SsLgg0y/EczvT2ZStFQ9MRLnjrn1bf/Uj6W2a60s3bO/ZfwoeRLwhoeQzuWZqOHVB7M+ nbmuMEZr0dW5XsnwWJMWDKJl4bbFtrNcwgRV+YfuJD4l1PNGaAbxJYpYHvhWJKyQOY4z 6qgNOpxMRJUHXs0vcLaF0f6rVEVo8fRGiaPfM18uHpzc3P1kMQn3mVABKs83uHSuzieR SmAVkPpELijaGhwKuQw6ghEIjK1Us9ySyMfVXRJ9VzE4pmKcL1+/wCkzUaOldApTzKJ+ 69gQ== X-Gm-Message-State: ALoCoQlWYulISRDYbYsPrAWvVllTbW3pRhEfcYet9cEGyUnl2sQJVNYKITfIYu24mqu8yjhjQ7du X-Received: by 10.14.194.70 with SMTP id l46mr852373een.95.1398433358508; Fri, 25 Apr 2014 06:42:38 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id 48sm24963701eei.24.2014.04.25.06.42.35 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:42:36 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Fri, 25 Apr 2014 15:42:10 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: Cc: git@xilinx.com Subject: [U-Boot] [PATCH 03/18] ARM: zynq: Remove sparse warnings 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 Warnings: board/xilinx/zynq/board.c:17:13: warning: symbol 'fpga' was not declared. Should it be static? board/xilinx/zynq/board.c:20:13: warning: symbol 'fpga010' was not declared. Should it be static? board/xilinx/zynq/board.c:21:13: warning: symbol 'fpga015' was not declared. Should it be static? board/xilinx/zynq/board.c:22:13: warning: symbol 'fpga020' was not declared. Should it be static? board/xilinx/zynq/board.c:23:13: warning: symbol 'fpga030' was not declared. Should it be static? board/xilinx/zynq/board.c:24:13: warning: symbol 'fpga045' was not declared. Should it be static? board/xilinx/zynq/board.c:25:13: warning: symbol 'fpga100' was not declared. Should it be static? board/xilinx/zynq/board.c:120:5: warning: symbol 'board_mmc_init' was not declared. Should it be static? Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) -- 1.8.2.3 diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index c8cc2bc..5190938 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -6,6 +6,8 @@ #include #include +#include +#include #include #include #include @@ -14,15 +16,15 @@ DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_FPGA -xilinx_desc fpga; +static xilinx_desc fpga; /* It can be done differently */ -xilinx_desc fpga010 = XILINX_XC7Z010_DESC(0x10); -xilinx_desc fpga015 = XILINX_XC7Z015_DESC(0x15); -xilinx_desc fpga020 = XILINX_XC7Z020_DESC(0x20); -xilinx_desc fpga030 = XILINX_XC7Z030_DESC(0x30); -xilinx_desc fpga045 = XILINX_XC7Z045_DESC(0x45); -xilinx_desc fpga100 = XILINX_XC7Z100_DESC(0x100); +static xilinx_desc fpga010 = XILINX_XC7Z010_DESC(0x10); +static xilinx_desc fpga015 = XILINX_XC7Z015_DESC(0x15); +static xilinx_desc fpga020 = XILINX_XC7Z020_DESC(0x20); +static xilinx_desc fpga030 = XILINX_XC7Z030_DESC(0x30); +static xilinx_desc fpga045 = XILINX_XC7Z045_DESC(0x45); +static xilinx_desc fpga100 = XILINX_XC7Z100_DESC(0x100); #endif int board_init(void)