Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10229652ybl; Thu, 26 Dec 2019 13:22:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzCTazKjj60Rn30gwuVgXh6tl7Ut4tVOt0Zij17uKkMUhyMdXrlYe2E449Mb4/+uElbbIJU X-Received: by 2002:a9d:8f1:: with SMTP id 104mr48566365otf.107.1577395356960; Thu, 26 Dec 2019 13:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577395356; cv=none; d=google.com; s=arc-20160816; b=WuEPynJRoEZJQk3YKzAIoWaKSSy6jFpwqYyv1qP+Y9/EYItxDf8J85oBpH19NZp6X8 PleAHIc1GpMl7eOcovC6OzyHLjwUBLBiFE/WksQmuwpZWFZ1pWz2OtCvDZhy9zlnVaxu 8AMWyErVqq8v6ztjkrjA1FIVM0TKD6B9OswOggYSnwq2R/BZqaxL6/1G5eR0HYAk/tch TdCPvt4z/SawEQaVqJCzhCloKmlBNxoDV557LlDeS3opiWhK/0wewu+DAaNZDY9r2fwV r/CbpRTooeKSprP5XMsm/5GQvHuKlTcFiXtdS5IADfuG8VYJh20jN5g4hcY7GmSmE3Wf aiKw== 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 :content-disposition:mime-version:user-agent:in-reply-to:subject:cc :to:from:message-id:date; bh=+xoilMwqi8dUEdShCh9dtw4Fgh+0/u7jO6r+a0tUoQw=; b=cs28wF8S8KVDDuOq7AMOjvfGeCnWPtNSO4mqZdKxhcrkoxsQ1GLC2rkU5fZXB+8hZF ofrVDqCWaiQMw7s2pk5hFF22n8pUdkYdQnKYzX4fSqTHYIP/fMXnjF6iX4oMRkpqDgOr /tcvKx6yRVZSbH3URBzafhJUR7iyHdze32vTDwj6nMGpIKT6urM9ZyEIAnxg0BZ21O2R kTsrZqSRIw1yqiAXdirORJZdEFSzCrpoqdxuwggb8/eCDDpxHJ4VAatUj2OYbW4sgLWn MO2PfHvVP4rngUDuWyPED/vVaPm+XyTBMvv8o7dPWRwkM6KEZmwtgDmGFxZDsQxV6oFU w+uQ== ARC-Authentication-Results: i=1; mx.google.com; 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 n8si14973034otr.102.2019.12.26.13.22.26; Thu, 26 Dec 2019 13:22:36 -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; 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 S1726831AbfLZVVa convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Dec 2019 16:21:30 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:43362 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbfLZVVa (ORCPT ); Thu, 26 Dec 2019 16:21:30 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47kNDm5XNmz9vK4M; Thu, 26 Dec 2019 22:21:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id jeNv5bw7Fs1z; Thu, 26 Dec 2019 22:21:28 +0100 (CET) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 47kNDm4H21z9vK4L; Thu, 26 Dec 2019 22:21:28 +0100 (CET) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 1F68B605; Thu, 26 Dec 2019 22:22:02 +0100 (CET) Received: from 37-165-97-118.coucou-networks.fr (37-165-97-118.coucou-networks.fr [37.165.97.118]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Thu, 26 Dec 2019 22:22:02 +0100 Date: Thu, 26 Dec 2019 22:22:02 +0100 Message-ID: <20191226222202.Horde.0xaecj7x1FoNwm4fHxlH0Q2@messagerie.si.c-s.fr> From: Christophe Leroy To: YueHaibing Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, paulus@samba.org, benh@kernel.crashing.org Subject: Re: [PATCH -next] powerpc/pmac/smp: Fix old-style declaration In-Reply-To: <20191225114943.17216-1-yuehaibing@huawei.com> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org YueHaibing a écrit : > There expect the 'static' keyword to come first in a declaration > > arch/powerpc/platforms/powermac/smp.c:664:1: warning: static is not > at beginning of declaration [-Wold-style-declaration] > arch/powerpc/platforms/powermac/smp.c:665:1: warning: static is not > 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 > 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 ? See https://www.kernel.org/doc/html/latest/process/volatile-considered-harmful.html Christophe