From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.4 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60EB7C49ED7 for ; Sat, 21 Sep 2019 07:40:30 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD715206B6 for ; Sat, 21 Sep 2019 07:40:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pj8jIhS3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD715206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46b2Yl3BlPzDqD5 for ; Sat, 21 Sep 2019 17:40:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::342; helo=mail-wm1-x342.google.com; envelope-from=ilie.halip@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pj8jIhS3"; dkim-atps=neutral Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46ZdGw6qMdzF3K2 for ; Sat, 21 Sep 2019 01:41:04 +1000 (AEST) Received: by mail-wm1-x342.google.com with SMTP id 5so3027228wmg.0 for ; Fri, 20 Sep 2019 08:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G9rxy00ZIE0J9oTLHWg18q2mcebTff8MKdbRpMtgQiE=; b=pj8jIhS3MfHDWFaGUFRN0DWdCEPx48aiDB3T/KuVJk5bF+IcXQEO/QYOz+DHCfj5wU nZnXcBdqoATCpnSRKTiuAJNg247vXe9s4w4rwRUPdO3pYXp0MpwUePpLFlRpcGwzPuHg GMYTRrq4+ukC+Fn/jik5sdMRQJ1C8Iuyn0fQUGniCUt0pRFH8Fvub/l60Uhfcy9DigqX lUAayDhrDwN+/stHfcbu5mh8CikB0K+XlDa58+NXltWpcR6jW0WksiTn/6ZMYe8ewWQ8 jTD29XgSPIZj2bxYPJ4rdEFpG43y6bMAGMINN6ZnoP0XNpbFw3Qj9Qr9gE7MweNpBFem TUOQ== 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=G9rxy00ZIE0J9oTLHWg18q2mcebTff8MKdbRpMtgQiE=; b=I2Ar3xU5vKs1CpTrbIL4Jems01tzR+FfRJcxQmkKRnWQSCXQ00jh6/NkiUyKddCfEj 6V28qjaPLt/AfB6ZuAMC2oIVgcCEmHhuJujJktuEgaCc758UyLXve4AJ+IO/hqjxK5Ma 3gxnO6C7cg7xuJlDL8RWzoXl8ExtBtERMuib7IG3pDIREXntV8ywwTk0z7964Cyurbva O7+U55kzBvZXOvzuTQKG3SosI5yeL/sQI94Dhhkgzh/om3lnweMkzNnANUrWjFxFck4L CI0aoThOVhS7zIaK+W9QAochcc7/TicD7h54CAHgbR8ksCkAxk/yaqw/7yk4eJjpm/1m 0aNg== X-Gm-Message-State: APjAAAWcOxpWub/QR+LSo8yK081CBvoT1v7yWRKaulQilbzp4CypxO8J el97ENv/3CHqa1W2fj+VtD8= X-Google-Smtp-Source: APXvYqyB2XK1sqdhE1BqdnoRFRwpnohUADqLVaHceuij08hty0iZggkbHEgIzc81lHxQ+Tgpkw9YJQ== X-Received: by 2002:a1c:60c1:: with SMTP id u184mr3871598wmb.32.1568994059713; Fri, 20 Sep 2019 08:40:59 -0700 (PDT) Received: from localhost.localdomain ([2a02:a58:8166:7500:adc0:6801:a7c2:8ba2]) by smtp.gmail.com with ESMTPSA id x129sm3249186wmg.8.2019.09.20.08.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 08:40:58 -0700 (PDT) From: Ilie Halip To: Michael Ellerman Subject: [PATCH] powerpc/pmac/smp: avoid unused-variable warnings Date: Fri, 20 Sep 2019 18:39:51 +0300 Message-Id: <20190920153951.25762-1-ilie.halip@gmail.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Sat, 21 Sep 2019 17:35:53 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ilie Halip , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Paul Mackerras , Nathan Chancellor , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2085C3A5A2 for ; Fri, 20 Sep 2019 15:41:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6A06208C0 for ; Fri, 20 Sep 2019 15:41:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pj8jIhS3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392989AbfITPlC (ORCPT ); Fri, 20 Sep 2019 11:41:02 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37038 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392871AbfITPlB (ORCPT ); Fri, 20 Sep 2019 11:41:01 -0400 Received: by mail-wm1-f66.google.com with SMTP id f16so2718724wmb.2 for ; Fri, 20 Sep 2019 08:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G9rxy00ZIE0J9oTLHWg18q2mcebTff8MKdbRpMtgQiE=; b=pj8jIhS3MfHDWFaGUFRN0DWdCEPx48aiDB3T/KuVJk5bF+IcXQEO/QYOz+DHCfj5wU nZnXcBdqoATCpnSRKTiuAJNg247vXe9s4w4rwRUPdO3pYXp0MpwUePpLFlRpcGwzPuHg GMYTRrq4+ukC+Fn/jik5sdMRQJ1C8Iuyn0fQUGniCUt0pRFH8Fvub/l60Uhfcy9DigqX lUAayDhrDwN+/stHfcbu5mh8CikB0K+XlDa58+NXltWpcR6jW0WksiTn/6ZMYe8ewWQ8 jTD29XgSPIZj2bxYPJ4rdEFpG43y6bMAGMINN6ZnoP0XNpbFw3Qj9Qr9gE7MweNpBFem TUOQ== 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=G9rxy00ZIE0J9oTLHWg18q2mcebTff8MKdbRpMtgQiE=; b=V/5nBP7uYSsw6fmCdudKNDc2krdOsIBbxmlZKBxsidoi/pA/xKbcMPeuJaQakDSDGk oSK6LgtkjhqAD281GKfZPwdLaKjKmILkHptwgph2ADbTLlbewjkPk0wdkLZcjvTqiUF2 dMyi7tZX99aZwVePTQUtUMaEOR0Hs8/CvoVnzWVrT0v6WOgMnoXdYWD6aJT9JE2VD1pv EgiCuMCC8785W4ON8FpxkhwvHI8K0+DrOcWNlavMPeWPx93uYpcYIyVQY9b9EvZ6Ckfo 9ZuvhQaExLy7yCaPaYIsQV2HFa4hmlEu9NR9l2VXHVIbEk1RHO+HnWB0+XPx6FcbmifP LwgA== X-Gm-Message-State: APjAAAX9TEKf909wzKesABhEo8qw9+tXKMPEXxm4ukvhqsEtnzR1/ilA ZjW2nL2KlaLfp9N/dVLcgH4= X-Google-Smtp-Source: APXvYqyB2XK1sqdhE1BqdnoRFRwpnohUADqLVaHceuij08hty0iZggkbHEgIzc81lHxQ+Tgpkw9YJQ== X-Received: by 2002:a1c:60c1:: with SMTP id u184mr3871598wmb.32.1568994059713; Fri, 20 Sep 2019 08:40:59 -0700 (PDT) Received: from localhost.localdomain ([2a02:a58:8166:7500:adc0:6801:a7c2:8ba2]) by smtp.gmail.com with ESMTPSA id x129sm3249186wmg.8.2019.09.20.08.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 08:40:58 -0700 (PDT) From: Ilie Halip To: Michael Ellerman Cc: Nathan Chancellor , clang-built-linux@googlegroups.com, Ilie Halip , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/pmac/smp: avoid unused-variable warnings Date: Fri, 20 Sep 2019 18:39:51 +0300 Message-Id: <20190920153951.25762-1-ilie.halip@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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