Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4860026ybl; Mon, 13 Jan 2020 22:39:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxNY+rA60meSnduJ2QEDk8pZnLUpApIzyK12U9GNt7sBgKBdYVNnDqrMWRbc6yFMbuFW6gt X-Received: by 2002:a9d:7519:: with SMTP id r25mr15731505otk.284.1578983999400; Mon, 13 Jan 2020 22:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578983999; cv=none; d=google.com; s=arc-20160816; b=vBBIIgJyzUv/HBkTmyZ1uWuqmx3B9b1kpm2E2s8jT/y1hP24ckHE88apjqMsTsQ3UI 04jWfdtlgOwv2D2iW4h6elxQCjJVeL2O6axT3uiLo9w2ZOUZ8HHRtnhl81jqBz7+qLcH QBFN/BNKFe1wetPXb8Lw/VCObbeN87kBioO7X8FVKWlMNy6CHOukS2TOWqLWoyKzRT+P II5hs6HImIA0qsu4JVIVAR5+bJUfZz6rWOy+5xAJxM2Kudsp8kNB7g+YyUoVdbzzj6UZ ERtQfB/egJk26+wqO5wuYvKremie1/aRPiE4C0tTIhxyyqUke3B4pAL07X2ygXUtFhEi 6aKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=iN1jENgaPNGMkIJ1E7bFao1+A0tY8+nLdTND9YNBVxk=; b=WWarkAquHYPbyHnJTgKmpBE7vu1TZJBsr1uTFwVAU84pAQvQiPYaJxrbNzd75FQDlm EVw4JmI39qEHxBoN/lRKnGKCFEYD84M3u2AnJs2bnw8iJgYPVzyrEin0gGupPS2EplJP j3pVpLHSah6PzhRn8EZbmip7+bxaBG6Wfu+Ogp49/2jBeN/yEq5WUhglGb3BznbqEApP 7iCeF4sb6P8iJdvXbtLRQElky0Dui6IMLnf9P4sc1dP/OTd3DS+NyGFUuhBEJEDDk0dA xKLpFJVgliz18IAArJB2FF6sWvzbRrF14BTrwB4Vw7t/VoW6NPdjei2ThLY91Xx+9VIY aN0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=ReZikxMR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si8547520otn.7.2020.01.13.22.39.47; Mon, 13 Jan 2020 22:39:59 -0800 (PST) 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=@ellerman.id.au header.s=201909 header.b=ReZikxMR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbgANGio (ORCPT + 99 others); Tue, 14 Jan 2020 01:38:44 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:39479 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbgANGin (ORCPT ); Tue, 14 Jan 2020 01:38:43 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 47xglP3VjHz9sP6; Tue, 14 Jan 2020 17:38:41 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1578983921; bh=8Xd/62pEsfJImxqU2Q8fAGyIgUR8Q6dVQGOz7mkkj+0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ReZikxMRCgXPcN9LdjIiMWt82hBEotcBTQOdAbmt2qPC9Lrkg/f+Z+D/cEKkP6Amk UFwMxtvq0GIdH4xoE44foW8horARE0i044FMZuEqBONDLczM/PNke2/o7+5J5mj0rt JXd6kA5Jx4bwzQkdrwzgRBMYx0jT7uTcwlCTyH4JNJCtz1Dhd+XsUIN/2xRYrfD+UK kEEZVwRPwS9j1efhcLoFCbj0njF0XumxKFnoZYCVNGS9ZOELAb44iGefQrK84QqoU+ nWsJRdDlQVzU8AHUz+bnysKK/cx6Gc8RiPwDiADwjdbW785iRb90jDv6PBztwR7GeB Wz8ZmW5+MOwgA== From: Michael Ellerman To: Christophe Leroy , YueHaibing Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, paulus@samba.org, benh@kernel.crashing.org Subject: Re: [PATCH -next] powerpc/pmac/smp: Fix old-style declaration In-Reply-To: <20191226222202.Horde.0xaecj7x1FoNwm4fHxlH0Q2@messagerie.si.c-s.fr> References: <20191226222202.Horde.0xaecj7x1FoNwm4fHxlH0Q2@messagerie.si.c-s.fr> Date: Tue, 14 Jan 2020 16:38:44 +1000 Message-ID: <87k15ua6ff.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > YueHaibing a =C3=A9crit=C2=A0: > >> There expect the 'static' keyword to come first in a declaration >> >> arch/powerpc/platforms/powermac/smp.c:664:1: warning: static is not=20=20 >> at beginning of declaration [-Wold-style-declaration] >> arch/powerpc/platforms/powermac/smp.c:665:1: warning: static is not=20=20 >> at beginning of declaration [-Wold-style-declaration] >> >> Signed-off-by: YueHaibing >> --- >> arch/powerpc/platforms/powermac/smp.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/arch/powerpc/platforms/powermac/smp.c=20=20 >> b/arch/powerpc/platforms/powermac/smp.c >> index f95fbde..7233b85 100644 >> --- a/arch/powerpc/platforms/powermac/smp.c >> +++ b/arch/powerpc/platforms/powermac/smp.c >> @@ -661,8 +661,8 @@ 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 volatile long int core99_l2_cache; >> +static volatile long int core99_l3_cache; > > Is it correct to declare it as volatile ? I don't see any reason why it needs to be volatile, so I think we can just remove that? cheers