From patchwork Sat Jan 27 20:13:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 866772 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zTRn43gcYz9s9Y for ; Sun, 28 Jan 2018 07:14:00 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 101B8C21F58; Sat, 27 Jan 2018 20:13:56 +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_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 89FCBC21E28; Sat, 27 Jan 2018 20:13:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D0247C21E28; Sat, 27 Jan 2018 20:13:52 +0000 (UTC) Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.161.196]) by lists.denx.de (Postfix) with ESMTPS id 4325FC21C8F for ; Sat, 27 Jan 2018 20:13:52 +0000 (UTC) Received: by mail-yw0-f196.google.com with SMTP id m84so1395043ywd.5 for ; Sat, 27 Jan 2018 12:13:52 -0800 (PST) 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; bh=mO7Otk0AtNqBMP0gt0UPLCQNkuRaye2rI0+K0bc5UFU=; b=m6Pw+GKoEdsSMNrT2ZD3cJMdYlwx+A114UVSqN9TPZYpOAshjjdAHKElkqYkXdehEV /o98LPff0lcEFZNL9oK5iwmB1q27o7/u99LIwzxN31CCucRmV89PBfM5MZHFFlh6XnMJ wXEiZqROGa5GQDbXpP5HE887T4igNPnIeidMsMhrkyuUK5GnFyHehSfR1MAoiUE/ARSJ SNA1GQlC5ujBUclPvyIn093ovnUh6I6oaVrJB2szXAeBlZhbh/kSOCULWTEskGqdib0P Ltr8ku3AZzvcXIyBH1V/UDM/B4NUiz8P7vKD2U0cDbv69g2Qa6SlqCiV+J7AC6C2Rlv3 rVMg== X-Gm-Message-State: AKwxytdqrJFfA4v8Nk+XU2wCTAmvLJy6N9dlPyslCLIjYEKAfRh+5OhK 0XsxqZ2O0mMHwslkmj5g0cnh X-Google-Smtp-Source: AH8x224yu9OfkLWySwYj8Uf9YIBrY6l0PcmBWWjnZpZAoAP/OfAMzawwWJeQ5ANjuGM4lKTZbvNpkg== X-Received: by 10.129.48.139 with SMTP id w133mr14483437yww.111.1517084031018; Sat, 27 Jan 2018 12:13:51 -0800 (PST) Received: from localhost.localdomain (cpe-65-184-142-68.ec.res.rr.com. [65.184.142.68]) by smtp.gmail.com with ESMTPSA id d133sm3153427ywh.22.2018.01.27.12.13.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Jan 2018 12:13:50 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Sat, 27 Jan 2018 15:13:47 -0500 Message-Id: <1517084027-25397-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] x86: quark: Fix unused warnings 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The variable t_rfc is never used, so drop it. The variables ddr_wctl and ddr_wcmd are only used in certain manual instances, so guard their declaration by the same check as their use. Cc: Bin Meng Signed-off-by: Tom Rini Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/x86/cpu/quark/smc.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/x86/cpu/quark/smc.c b/arch/x86/cpu/quark/smc.c index 3ffe92b67b20..0195b56a52f6 100644 --- a/arch/x86/cpu/quark/smc.c +++ b/arch/x86/cpu/quark/smc.c @@ -17,15 +17,6 @@ #include "hte.h" #include "smc.h" -/* t_rfc values (in picoseconds) per density */ -static const uint32_t t_rfc[5] = { - 90000, /* 512Mb */ - 110000, /* 1Gb */ - 160000, /* 2Gb */ - 300000, /* 4Gb */ - 350000, /* 8Gb */ -}; - /* t_ck clock period in picoseconds per speed index 800, 1066, 1333 */ static const uint32_t t_ck[3] = { 2500, @@ -35,8 +26,12 @@ static const uint32_t t_ck[3] = { /* Global variables */ static const uint16_t ddr_wclk[] = {193, 158}; +#ifdef BACKUP_WCTL static const uint16_t ddr_wctl[] = {1, 217}; +#endif +#ifdef BACKUP_WCMD static const uint16_t ddr_wcmd[] = {1, 220}; +#endif #ifdef BACKUP_RCVN static const uint16_t ddr_rcvn[] = {129, 498};