Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp54390ybi; Thu, 13 Jun 2019 11:30:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYneY2JQMRd2w0KPielxr5hOHYHoUQUQ6zpcflXasUJGzQNeReUIvtSuG7L3gXsngNFl+1 X-Received: by 2002:a17:90a:6505:: with SMTP id i5mr6912616pjj.47.1560450616496; Thu, 13 Jun 2019 11:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560450616; cv=none; d=google.com; s=arc-20160816; b=faDlU92HUrYOkHUP1pZHpFK3wELPFEfdxU2ec9HrNVB7Mkx1CKCihhX2TT4tfZvQrD MYkRn/pwYSWgXJotSn13FvR0+5M3bRCXNEhNJTC+FzWBnXHZ7k5ch5RtFuVlpj4228Ck G9h3yb1au2IhWpxl9IBromFmUGdUl6J75Bq2rrpNQITGfgsMu2EJ5h91EMNoEGvVDPUh tXZRMpMzFrRlIdSuwsXmEEKMaU5B/ka9sHGuIYXFpH64VA4nTkNBWqUwCSGzmHl5C9Gc YY4lRSgfh3kt+AnDptAuTpty6Lqj2FgCBgdid7A8EEKQUMoUTuy8WawhllASxiDi9VuT 8dig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FemmaFQaRuutEOaISPpOpqicA0l7Z+VaG2En8NxAbN8=; b=VbvDobcPLt9ZyilcJTf7LB0QPXYzTU8aScN1XShOe1mojZB8T4fzOXZ9b+WB/wELTx stBw4eRTv6p/ku7NLnjVcgn61SzlYTFtHOIt7stYNe672z1WLbki/AzHcIkCAJcalytH prRHcVjudD066LxUC/yTn6z7qt4oY+Qygv7gYmJhntLuEbwm8kRco6+yMA95FDrBBOKV tk1pp5U8TuwxqxwfjzbHpzKoyI39+umUMPqo/RY94TRQJ75UPwLpPQx0lbLScOwVaPAS kzztZdrDy1WqUNEYRNPEV+GuciOjVeXBlt+B8PCihEOO/DsnyEjPt436v364BSBB0mMf 1loA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=om8CHXpu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si384920pgi.74.2019.06.13.11.30.01; Thu, 13 Jun 2019 11:30:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=om8CHXpu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728665AbfFMS2J (ORCPT + 99 others); Thu, 13 Jun 2019 14:28:09 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41410 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727179AbfFMS2J (ORCPT ); Thu, 13 Jun 2019 14:28:09 -0400 Received: by mail-pf1-f194.google.com with SMTP id m30so11834513pff.8 for ; Thu, 13 Jun 2019 11:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FemmaFQaRuutEOaISPpOpqicA0l7Z+VaG2En8NxAbN8=; b=om8CHXpui7NO/n4e0fAe/88mp2X04gjpzNTg0RhpC2P/3kC8OznZOg5t8HOFo+axq+ 9EtdPAdhP1fwLKFOlb0ozVWzxlbTlMttuMpAm7drb9bLM7LmR4Ui8RCsYJDzuYTkHaut oqMpurM7cd4UOxLlZ54GCkYlRHaCerc1SIOKXfte06yeQ1BpmnuUtNPMsLHbpz0j8oiG GV7YDiYts/dIVzk5ezT75fSCFLQ9cYVzhOTBXA6kjQW8d5h9uSjg28VaKaRWmMZtwOFw k5pGcFw3I2uOwmmrklCaIv+kLeXKcvkhfdBPOxmUulvSnPf11EOZC6Vn21Vlk+mKY0ST xafQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FemmaFQaRuutEOaISPpOpqicA0l7Z+VaG2En8NxAbN8=; b=sibnITR2RYwWSZFAzK8O3tb9TDbck2oYMCvuATTg5/2o7xdQ37K6/1bJffyTuVvhjP BdxU1Fp1eP2SDHf6cxTS7HcL9RUSR+Hhy8nmp6aPnDRkkQvyviVbkNXnWJ8IsXQ3ExCf c97VeQ/rxzn/Cxf4Gjhn8AuN1jaedamArsmVJhuE7xUYsZANKyzK7fvhsnSmt5s/mPZV kVHzgyariehPwebSddsxuLF4EWDqGWU1uk+WZ23+f8om7mF6gDawPtbZ1ai5K58drZho YxkpLNSlzvJ8TcFYAehvdMpZitlmD/WJeD5guqDGeGUgo1E3SEBJQQZwzV5LEka0VwuG Syng== X-Gm-Message-State: APjAAAX3Un9jBge8S1vZwiuisVU4++as5A38ANRiblnWCetVl9qsA7lw 9Y+IVCawEPf+jKUUhQaw/vk6YmKyaSCO78tuaJ3jbA== X-Received: by 2002:a62:2ec4:: with SMTP id u187mr93063583pfu.84.1560450488136; Thu, 13 Jun 2019 11:28:08 -0700 (PDT) MIME-Version: 1.0 References: <20190613182610.238801-1-nhuck@google.com> In-Reply-To: <20190613182610.238801-1-nhuck@google.com> From: Nick Desaulniers Date: Thu, 13 Jun 2019 11:27:57 -0700 Message-ID: Subject: Re: [PATCH v2] memory: tegra: Fix -Wunused-const-variable To: Nathan Huckleberry Cc: Thierry Reding , jonathanh@nvidia.com, linux-tegra@vger.kernel.org, LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 11:26 AM 'Nathan Huckleberry' via Clang Built Linux wrote: > Changes from v1 -> v2: > * Moved definition of tegra124_mc_emem_regs into existing ifdef Thanks for sending the v2, LGTM. Reviewed-by: Nick Desaulniers > --- a/drivers/memory/tegra/tegra124.c > +++ b/drivers/memory/tegra/tegra124.c > @@ -33,28 +33,6 @@ > #define MC_EMEM_ARB_MISC1 0xdc > #define MC_EMEM_ARB_RING1_THROTTLE 0xe0 > > -static const unsigned long tegra124_mc_emem_regs[] = { > - MC_EMEM_ARB_CFG, > - MC_EMEM_ARB_OUTSTANDING_REQ, > - MC_EMEM_ARB_TIMING_RCD, > - MC_EMEM_ARB_TIMING_RP, > - MC_EMEM_ARB_TIMING_RC, > - MC_EMEM_ARB_TIMING_RAS, > - MC_EMEM_ARB_TIMING_FAW, > - MC_EMEM_ARB_TIMING_RRD, > - MC_EMEM_ARB_TIMING_RAP2PRE, > - MC_EMEM_ARB_TIMING_WAP2PRE, > - MC_EMEM_ARB_TIMING_R2R, > - MC_EMEM_ARB_TIMING_W2W, > - MC_EMEM_ARB_TIMING_R2W, > - MC_EMEM_ARB_TIMING_W2R, > - MC_EMEM_ARB_DA_TURNS, > - MC_EMEM_ARB_DA_COVERS, > - MC_EMEM_ARB_MISC0, > - MC_EMEM_ARB_MISC1, > - MC_EMEM_ARB_RING1_THROTTLE > -}; > - > static const struct tegra_mc_client tegra124_mc_clients[] = { > { > .id = 0x00, > @@ -1049,6 +1027,28 @@ static const struct tegra_mc_reset tegra124_mc_resets[] = { > }; > > #ifdef CONFIG_ARCH_TEGRA_124_SOC > +static const unsigned long tegra124_mc_emem_regs[] = { > + MC_EMEM_ARB_CFG, > + MC_EMEM_ARB_OUTSTANDING_REQ, > + MC_EMEM_ARB_TIMING_RCD, > + MC_EMEM_ARB_TIMING_RP, > + MC_EMEM_ARB_TIMING_RC, > + MC_EMEM_ARB_TIMING_RAS, > + MC_EMEM_ARB_TIMING_FAW, > + MC_EMEM_ARB_TIMING_RRD, > + MC_EMEM_ARB_TIMING_RAP2PRE, > + MC_EMEM_ARB_TIMING_WAP2PRE, > + MC_EMEM_ARB_TIMING_R2R, > + MC_EMEM_ARB_TIMING_W2W, > + MC_EMEM_ARB_TIMING_R2W, > + MC_EMEM_ARB_TIMING_W2R, > + MC_EMEM_ARB_DA_TURNS, > + MC_EMEM_ARB_DA_COVERS, > + MC_EMEM_ARB_MISC0, > + MC_EMEM_ARB_MISC1, > + MC_EMEM_ARB_RING1_THROTTLE > +}; > + -- Thanks, ~Nick Desaulniers