Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2199796ybj; Sun, 22 Sep 2019 22:38:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9zAM8Fh/+OvJqEumc6v2sTaH/nu519rKtWjXIU+RlJPxMbZQrwBPJkUVX0ThG3AQ+NPIz X-Received: by 2002:a50:b545:: with SMTP id z5mr12025391edd.203.1569217085376; Sun, 22 Sep 2019 22:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569217085; cv=none; d=google.com; s=arc-20160816; b=nrXOLc65chkVPt7SiC7R4bGpe2/GMzzbElE/hdMro+iesRtsWj9pQo+jcCxwmaRjvB UnTcJ82Ry32weHrYq87OnaQNlCbeSYyW3NxPTLvZm1Tf+3IXQTfhUnZdwKhrpLSyS0fN /9v5CpHCfF70Ryn8My6Ea3OyGbCjQekO9IBzZQtyLZ2LiLjEAq0epsY4thmZvnx58LSs GfgwtlHJo8LbpWVR0hX6hyrwuL4YP7gpVAuKMn5at/rIcfY+1rqspNqdgMPXTF6o2MO1 mVDVmQwksRyIdZ2XBlBTZz5conzryg4+C+jYErkurmXfMGBc8qz5qZnxKg66+4xWMKNG HjsQ== 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=vlNGfK1QkeKihZ4C4Tfs64KHadfyM3q44e2VI4eyD3A=; b=E4lZ0pBWJA0s/qXd6BALgIApBwifwuPxg8mVp55eCa/QdPy1no7/mB9YtRyycew1E3 P4Cxw8FK00nkEBAyu3wa7pHGmkziUolhiIsCMGoshk/EYN7aRNLPBhNVmk4D01SZnUiy 6LX60W5MTQvJpyNZlCOplc3m+rdX73QY8s4mx5W3zSYAnln00VywoNeKNZkYq02XUUJg LKyy/mxOexfYrr2tJeJuoVb1Gpaa/22rAkOHJlMr8q+ITGP4pjhtDltvelUxGeopdBDn KbqrrtiALtosd449G2HI+4slsHHbgatwtjgCzmB9y7o4XbetvIu+s8mEz9CyARpkhEQ5 l5NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jPvq1xo2; 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 si9si4671740ejb.97.2019.09.22.22.37.27; Sun, 22 Sep 2019 22:38:05 -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=jPvq1xo2; 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 S2393413AbfITQUf (ORCPT + 99 others); Fri, 20 Sep 2019 12:20:35 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42416 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387644AbfITQUf (ORCPT ); Fri, 20 Sep 2019 12:20:35 -0400 Received: by mail-pf1-f193.google.com with SMTP id q12so4833679pff.9 for ; Fri, 20 Sep 2019 09:20:33 -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=vlNGfK1QkeKihZ4C4Tfs64KHadfyM3q44e2VI4eyD3A=; b=jPvq1xo2VKxr3BDR3r7JrBL+WPTyholNKVawQB0EIuY3oOAFbxYM/uA5HMC2fbYkic N+WbDQvIvyuzqCIEBZvdePa9S1vqkH6K2m+EW/LDDM5YxksbqG7BltCluuCjXA8C6rA7 oHUFuiqrNcCKpzeBNyoIFf5CiOpQ7mWVH8K4LjuMdP+70bqDaHmnZ0Meec8zRHOKfRHW WkfhMJuUv5shwWw4+4MZYjOsBWWfUVi91S2tVPqfkpzmI25/3+lVsKK8NU8bZ3jTRK1Q VmeH6eXJojh3Y3TPr80WtGaHCxT9hYoF2HjqaXLkg8KcbvcmXvsnsKXNp1G8WPXDWFwI GALA== 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=vlNGfK1QkeKihZ4C4Tfs64KHadfyM3q44e2VI4eyD3A=; b=HK6s1l4ckytEVddhKjFyTa5eoE44+oA23LgLepVAr6w6f/c15jKD07IVY9/PQ0Zf6A 6j6NJYIfocuW4fR9XAkoFxy28JGzq/68poM8jKPX5dB2WUASs28SuahMTdrrReay3o8c ojzSsMv9aaYRSIEvGXERbzRRuJvLOaJF5+dAeyiOpWJwWDpRZcFvo16UhkUtip4PsGQ+ qvJafnHntOB/0ArK38QzQrG8GUUzBU9cqZvGd/Lk7ys4QztyJfovuplxqPzAq4Ha4FCs oEbCzeD0HU1duA1oBxH4p40jPPetIxupffxHmge+t/xuHjHwfFbLLpk7ADbzxFqJbtDa JdkQ== X-Gm-Message-State: APjAAAX1iHLif5D2h6NTy75IMCruxPJOFjH85YC+U5qhYAAQyywPTrAS HeHhj1G+AtjiTGvD6NkbyQ8SeEtLEi2KqNWJd22Chg== X-Received: by 2002:a17:90a:ff18:: with SMTP id ce24mr5537560pjb.123.1568996432715; Fri, 20 Sep 2019 09:20:32 -0700 (PDT) MIME-Version: 1.0 References: <20190920153951.25762-1-ilie.halip@gmail.com> In-Reply-To: <20190920153951.25762-1-ilie.halip@gmail.com> From: Nick Desaulniers Date: Fri, 20 Sep 2019 09:20:20 -0700 Message-ID: Subject: Re: [PATCH] powerpc/pmac/smp: avoid unused-variable warnings To: Ilie Halip Cc: Michael Ellerman , Nathan Chancellor , clang-built-linux , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , LKML 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 Fri, Sep 20, 2019 at 8:41 AM Ilie Halip wrote: > > When building with ppc64_defconfig, the compiler reports > that these 2 variables are not used: > warning: unused variable 'core99_l2_cache' [-Wunused-variable] > warning: unused variable 'core99_l3_cache' [-Wunused-variable] > > They are only used when CONFIG_PPC64 is not defined. Move > them into a section which does the same macro check. > > Reported-by: Nathan Chancellor > Signed-off-by: Ilie Halip Hi Ilie, thanks for the patch. LGTM (Please include link tags if your link addresses a bug in our bug tracker; it helps us track where/when patches land, in case they need to be backported). Reviewed-by: Nick Desaulniers Link: https://github.com/ClangBuiltLinux/linux/issues/663 > --- > arch/powerpc/platforms/powermac/smp.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c > index f95fbdee6efe..e44c606f119e 100644 > --- a/arch/powerpc/platforms/powermac/smp.c > +++ b/arch/powerpc/platforms/powermac/smp.c > @@ -648,6 +648,10 @@ static void smp_core99_pfunc_tb_freeze(int freeze) > > static unsigned int core99_tb_gpio; /* Timebase freeze GPIO */ > > +/* L2 and L3 cache settings to pass from CPU0 to CPU1 on G4 cpus */ > +volatile static long int core99_l2_cache; > +volatile static long int core99_l3_cache; > + > static void smp_core99_gpio_tb_freeze(int freeze) > { > if (freeze) > @@ -660,10 +664,6 @@ static void smp_core99_gpio_tb_freeze(int freeze) > > #endif /* !CONFIG_PPC64 */ > > -/* L2 and L3 cache settings to pass from CPU0 to CPU1 on G4 cpus */ > -volatile static long int core99_l2_cache; > -volatile static long int core99_l3_cache; > - > static void core99_init_caches(int cpu) > { > #ifndef CONFIG_PPC64 > -- > 2.17.1 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20190920153951.25762-1-ilie.halip%40gmail.com. -- Thanks, ~Nick Desaulniers