Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp24143ybi; Thu, 13 Jun 2019 10:58:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzc3Zz479CwRDlM0V+23Ud2w8BPPeowcwDx87r2Uj/3HwbGSMC0d3SY+wP/c1ZMp5i0VC0a X-Received: by 2002:a17:902:d717:: with SMTP id w23mr44440227ply.275.1560448684446; Thu, 13 Jun 2019 10:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560448684; cv=none; d=google.com; s=arc-20160816; b=QzULn8ST2E/OsnAtwcOl+ZHpb6ynCwOAyyIGiEvGlBsFdObIe8TXK2Ib168hm5Nzq7 kCL70TJcEcyOF26v9MRl+Yn7DUvectk1CF64cE1YGaNsmdLOMUq2ZvS3AVfyuKrVa63g VY7ynebtXLcY1+5Kt+IuJ27pYZaKVwpanLvhLkPoLfk5fd6LkwG9QBc6bv+CuvgCjAvX e33YIXBZQl0MmRztac4OFcBOsaTwXEq1XjSYwmU2mKDR+3aptRZZEwY3Ea1aJq6Thvmm a+zhOou3ar7ZeFU4VK+8IboKrJzSYMhaD1Q925hdyipXiAkIDRafbHyCTlrFO4kGyn/W 1U8w== 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=Gvi3tZQZW8BsXnnoPHE7/tSt7BU9a4p0zFemEkayFyo=; b=YWuGVm8O9V581GfzicO+SWMms953vxIrZXhdh1vgGeaowLGat2yfj0oZ645b76U3D5 yBg0D/3boQxxPc8gWfH1DHqeZuEzVL/k6XUrKsc5JYHRk2ZMLyFBKYLnXXto72ZuB90r 6Y0A/DhHrsiYxFa1wucX5xCwk6Q7lHp0JmYhT1iDjpTTdDydVozjtJyYFHHPvxwslaiX 2UvyUOmrbUy+UhtvbhlctV4b3kFUVT2ykiAJnect/lH3O819pecnTGcO/8ic2VKJSU9q G89cH6Nv65zId3bpBx/ww2lH8E2BcZeS8wyIqEqcz2HaB+QTFE6V1PowJ8BD9Tfh8q9t rcNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=shmyzcS6; 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 15si299275pgz.466.2019.06.13.10.57.48; Thu, 13 Jun 2019 10:58:04 -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=shmyzcS6; 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 S1727345AbfFMR5R (ORCPT + 99 others); Thu, 13 Jun 2019 13:57:17 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44716 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbfFMR5Q (ORCPT ); Thu, 13 Jun 2019 13:57:16 -0400 Received: by mail-pg1-f193.google.com with SMTP id n2so11365914pgp.11 for ; Thu, 13 Jun 2019 10:57:16 -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=Gvi3tZQZW8BsXnnoPHE7/tSt7BU9a4p0zFemEkayFyo=; b=shmyzcS6AFgiPB1nhEgk44jVk3eNLX1aARrmVE8OENnn2AdYUATUUhHlTAhUlHPT9N s/lHWDBDWqG4wkty37QJKxMJY52HNh/VqxdWLatdAJkMTa5UXOQq+auk8MDb7WfnJCph RBXBQWvtS7TP620qbvH8dboY1HcoiUfCaCD+/nUf8Ijak9HJH6ZWun3rBMGPqCcELBC8 M0fOH0xqHHYJr7B02BEhWAiBxpKe/6j0jFEbw7an0lPa+hzJkp/1OS/zfYeqEbh+9FwZ PIg2SuPJvG3phhWpWqjU/l5NBjp1DblJiz7SC876wWMcun+HYZBUMC/D0Tevtq1r2hnn 532w== 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=Gvi3tZQZW8BsXnnoPHE7/tSt7BU9a4p0zFemEkayFyo=; b=oYyZfVn9ofbohfTDMcb43sqQWj2mkuTa530yiGX/J6ZhiNVypXLPx1wYtE1up1QDcs G0qxqJ92xAi1OqDF1SZmm0WskYDMD0/W9VU/ehiKv66c6lTX7qDzYuwH/S2Qr6nMB8CR /9Zk60cqTYmazafWmvkh3NiycBQGbdlAj5EDR1j4sTvMDyN7ZCFUZ5iGydy2Ios4xzex MYJh+4hP0nWjo7VIHyX6/yxSku6Pif4HF7XL84vkCvlS09cCNBFau4X6izKFggoNDkyn ZOQsnVdPBreYCc8k0PFD213/T7SaYEVPSm1M2fkdZm+/F+0hT5di4W3G9A39cATr5pa1 6hdw== X-Gm-Message-State: APjAAAXYQX0ANmkw0lVGMG/JwJr6ACAF9G6Ce4knbCsU6knT0mw7yhVg SoOSrenm6fT4WL0YAeur+v9yaooLHXZ/Kd863XXVxA== X-Received: by 2002:a63:1d5c:: with SMTP id d28mr31397596pgm.10.1560448635576; Thu, 13 Jun 2019 10:57:15 -0700 (PDT) MIME-Version: 1.0 References: <20190613172746.216819-1-nhuck@google.com> In-Reply-To: <20190613172746.216819-1-nhuck@google.com> From: Nick Desaulniers Date: Thu, 13 Jun 2019 10:57:04 -0700 Message-ID: Subject: Re: [PATCH] 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 10:28 AM 'Nathan Huckleberry' via Clang Built Linux wrote: > The only usage of this variable is from within an ifdef. > It seems logical to move the variable into the ifdef as well. Thanks for the patch, I agree but have the same thoughts as in: https://lkml.org/lkml/2019/6/13/1438 > +#ifdef CONFIG_ARCH_TEGRA_124_SOC > static const unsigned long tegra124_mc_emem_regs[] = { > MC_EMEM_ARB_CFG, > MC_EMEM_ARB_OUTSTANDING_REQ, > @@ -54,6 +55,7 @@ static const unsigned long tegra124_mc_emem_regs[] = { > MC_EMEM_ARB_MISC1, > MC_EMEM_ARB_RING1_THROTTLE > }; > +#endif -- Thanks, ~Nick Desaulniers