Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1738183ybg; Sat, 19 Oct 2019 01:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbdyLjergknzxisK+4kWl1NB9aeQ1oziMpoAi5lA2Q2jE0MmkCArXDCTfjRC3li6eRDIA7 X-Received: by 2002:a17:907:10dc:: with SMTP id rv28mr12456985ejb.7.1571473560117; Sat, 19 Oct 2019 01:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473560; cv=none; d=google.com; s=arc-20160816; b=kpdd+QT7jVflXfe+VwtNoIwqVpxA9ifu3kTVF+NURUAnNniHq6dycNuFUseTqvw5Nq ctXLUFQPLx2zDh8AH7TJlsrbE5qBjyaHp46y/EsR1FT272xEdK8OsQuG31ngyMGkXDcj +u8YujSj9PgYRRfe1lEv3J9Ww46tem3Pw/L4PwZSRdr2XvkZDG7+bvLZeK8ErfhEtH9C 2iNhDTre0jbHXuc7Er7+/wBnnvwVkgwxOji2YZYL5tFyl2UH7/9DzxvNy/A5Th8WDebB 7qoDIbZIq8bZQMgHYlaJLUrQb6wIHViUfYVZxEVG2bXXl5WzEURuroZxDJS+mEBD4W4o RUlA== 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-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=I1VMzgDpQacCcFVqFBepaAY9ZdCU2g4skomvficbUgo=; b=mGHMMf7175fw6x3+ahkD/uqaTcYPt1VFpho6MWaLIWE8hG2wsUog+1vPL+xN35Nstm U/90aAUOj6Sl7OkLs5lhsJgjd+LFBeKLnFAYG/KmoMp/18wGzYYnTPwxU7CS+tj+PE7M oUXInCFpXd7lXRvl+tUKlFyEWRmuQgjuVKqUG56qLftK/pQqcL8rO1Z8+v97TbXI5KdD aKg6/unAeXZlB5Dm8cXxwBF7OAklbC81K4RCiLOVsb49pshJ1BB6W5lps/qV3yageU2x C+at7tbaLGn/Y8vVwozzPj0UIrpraDFHb6SAFiewWisRhIaIwJbQTNIOadsLPQOfeZeX 7mrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=V36NPl2g; 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 o25si4656697ejc.361.2019.10.19.01.25.37; Sat, 19 Oct 2019 01:26:00 -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=@c-s.fr header.s=mail header.b=V36NPl2g; 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 S2410217AbfJRNBc (ORCPT + 99 others); Fri, 18 Oct 2019 09:01:32 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:48132 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410201AbfJRNBc (ORCPT ); Fri, 18 Oct 2019 09:01:32 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46vmPk1lMZzB09b0; Fri, 18 Oct 2019 15:01:30 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=V36NPl2g; dkim-adsp=pass; dkim-atps=neutral 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 7kP6dKzeFt4q; Fri, 18 Oct 2019 15:01:30 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 46vmPk0gjjzB09Zw; Fri, 18 Oct 2019 15:01:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1571403690; bh=I1VMzgDpQacCcFVqFBepaAY9ZdCU2g4skomvficbUgo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=V36NPl2ghgYXPsiMJKmq37EE8nFCg3F0wUdkilhhKCYptgtZHVg0yYaXsgcfJB/dw XgTxpVCnTzH5bl2NXEdBstoRltcAzsC9WQn81wfpkNh6WEyaK1buqVUWoWaEIxuqYx 8J8Ie7KRb54AKQutihiVrpv9VXDnAOpxxVgAZARw= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0038F8B802; Fri, 18 Oct 2019 15:01:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id SGZtcWX72nh9; Fri, 18 Oct 2019 15:01:29 +0200 (CEST) Received: from [192.168.204.43] (unknown [192.168.204.43]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 20E738B800; Fri, 18 Oct 2019 15:01:29 +0200 (CEST) Subject: Re: [PATCH 2/7] soc: fsl: qe: drop volatile qualifier of struct qe_ic::regs To: Rasmus Villemoes , Qiang Zhao , Li Yang Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> <20191018125234.21825-3-linux@rasmusvillemoes.dk> From: Christophe Leroy Message-ID: <841cd430-4e8b-13fd-1f80-27aef9e1bd11@c-s.fr> Date: Fri, 18 Oct 2019 15:01:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191018125234.21825-3-linux@rasmusvillemoes.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 18/10/2019 à 14:52, Rasmus Villemoes a écrit : > The actual io accessors (e.g. in_be32) implicitly add a volatile > qualifier to their address argument. Remove volatile from the struct > definition and the qe_ic_(read/write) helpers, in preparation for > switching from the ppc-specific io accessors to generic ones. > > Signed-off-by: Rasmus Villemoes > --- > drivers/soc/fsl/qe/qe_ic.c | 4 ++-- > drivers/soc/fsl/qe/qe_ic.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c > index 9bac546998d3..9694569dcc76 100644 > --- a/drivers/soc/fsl/qe/qe_ic.c > +++ b/drivers/soc/fsl/qe/qe_ic.c > @@ -171,12 +171,12 @@ static struct qe_ic_info qe_ic_info[] = { > }, > }; > > -static inline u32 qe_ic_read(volatile __be32 __iomem * base, unsigned int reg) > +static inline u32 qe_ic_read(__be32 __iomem * base, unsigned int reg) No space between '*' and 'base' please > { > return in_be32(base + (reg >> 2)); > } > > -static inline void qe_ic_write(volatile __be32 __iomem * base, unsigned int reg, > +static inline void qe_ic_write(__be32 __iomem * base, unsigned int reg, same > u32 value) > { > out_be32(base + (reg >> 2), value); > diff --git a/drivers/soc/fsl/qe/qe_ic.h b/drivers/soc/fsl/qe/qe_ic.h > index 08c695672a03..9420378d9b6b 100644 > --- a/drivers/soc/fsl/qe/qe_ic.h > +++ b/drivers/soc/fsl/qe/qe_ic.h > @@ -72,7 +72,7 @@ > > struct qe_ic { > /* Control registers offset */ > - volatile u32 __iomem *regs; > + u32 __iomem *regs; > > /* The remapper for this QEIC */ > struct irq_domain *irqhost; > Christophe