Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2639603rdb; Wed, 15 Nov 2023 06:41:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj9c2Xf4mC+SDBoKWoWjWA5RE63lYP8e9CMhMuNyqXdIKf+jMsTiipcwjZ4LfsQQTfP5m3 X-Received: by 2002:a17:90b:4a84:b0:27d:7887:ddc5 with SMTP id lp4-20020a17090b4a8400b0027d7887ddc5mr14654646pjb.32.1700059270593; Wed, 15 Nov 2023 06:41:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700059270; cv=none; d=google.com; s=arc-20160816; b=ycWaJDF2Qxmx016YqzrwkiodUSvNtWfjb7amSAORsVUtthS+AGA97zsoi23fZr5f5m /K0iE/y0rw3lj9e3xExPLul8U/x3M+GFVu5OKgml9u6zmuw9ieKCQTDOpR4fV4MuMGk8 hs51Y4pu2lSu+dzEvQSde/helJvyRgWNqv5MEo7gXbsmoa37g17lPniQWPPiP7Hl8aeY FLQDAgI+6jeGLkgQw+uc1Rn0ES0C5nMWdiBWwh3AOIdRw7KCcTggbNL+sND2U8f4T+Du CQZ2loipmgsZWydmceoQGFjOFRzw4aabT13t5nIIjxqLzblsHNRBxvc+byEaHoOtzsrz yRDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ntzG6ybotYjozkAeYHyWB4F1x10leAK3nGo8q37pzGw=; fh=5rCQDomVZxLXb7yR2oN4iSS3zxUnzGJP2HoQaRzhQu0=; b=VmWV8YZNOwnJaaCuM+ZrvOVjdkOsMcJX115mrDloyPkpJ7JjXYtXaPL2WFdHvOUbC5 pLKGAyW69OqHQ6cIdf6BDIINAnpKN8ESaRIdrQqCfNXM8yvO7HuH5DEyU/LcRR9HDUIC 0qu5iDV3mo0z2ct5LsSceBgPQXwuZNUADjMwjJC6Z3kWiHxapib4xQjXrLPsYyR17RkK N9gbImEeyLuvC2RLwq3nUlk4eu8aSt64bI8YZia42gj95Eu7K2AlfkCb1AmAsAvfxwgz iQDGY974MlPdJWckcnWaE9DcXKZYIS0rL7nFrweCchvLoxoeQF1iarqQuQs7IfNKu789 6Hhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=b2q7eO3n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w10-20020a17090abc0a00b00280c306d7f0si15231429pjr.159.2023.11.15.06.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 06:41:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=b2q7eO3n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 69E7C80C257F; Wed, 15 Nov 2023 06:40:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344195AbjKOOk0 (ORCPT + 99 others); Wed, 15 Nov 2023 09:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344124AbjKOOkW (ORCPT ); Wed, 15 Nov 2023 09:40:22 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A52A5AB; Wed, 15 Nov 2023 06:40:18 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPA id 6DEBBFF819; Wed, 15 Nov 2023 14:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700059217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ntzG6ybotYjozkAeYHyWB4F1x10leAK3nGo8q37pzGw=; b=b2q7eO3nLewI3RYpBon72DLCQHmYUR2TykmiajTdXE1bJKJBoOcbt6DKDQ2LT1+p1Z7Fzc L8+QipIFpmG/ewidhDUOvzVJsA++fNbPoVsw7yyURyGwLLaC54P6qq+5INSsExgCjAOyiN di/yKlOdALhUsDOravlufMpPgG06/KVg76NCWlSzhZWvqoKjr3FXod/Mfu2U+ERV5XJE/Z MorbrmJ8oha0q/DhjOXj2tPgegPEYGdf8Gi8JlgEhoC6EOPygb72qOa9lZdRS1EYfOZ2TK oKo5M2oX9jinzmVUKwzd++JHOf/sVwc2yqY97TTNUqczizLgXmj8vWPpgZofDQ== From: Herve Codina To: Herve Codina , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Linus Walleij , Qiang Zhao , Li Yang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Christophe Leroy , Randy Dunlap Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Simon Horman , Christophe JAILLET , Thomas Petazzoni Subject: [PATCH v9 01/27] soc: fsl: cpm1: tsa: Fix __iomem addresses declaration Date: Wed, 15 Nov 2023 15:39:37 +0100 Message-ID: <20231115144007.478111-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231115144007.478111-1-herve.codina@bootlin.com> References: <20231115144007.478111-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 15 Nov 2023 06:40:55 -0800 (PST) Running sparse (make C=1) on tsa.c raises a lot of warning such as: --- 8< --- warning: incorrect type in assignment (different address spaces) expected void *[noderef] si_regs got void [noderef] __iomem * --- 8< --- Indeed, some variable were declared 'type *__iomem var' instead of 'type __iomem *var'. Use the correct declaration to remove these warnings. Fixes: 1d4ba0b81c1c ("soc: fsl: cpm1: Add support for TSA") Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/tsa.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/soc/fsl/qe/tsa.c b/drivers/soc/fsl/qe/tsa.c index 3f9981335590..6c5741cf5e9d 100644 --- a/drivers/soc/fsl/qe/tsa.c +++ b/drivers/soc/fsl/qe/tsa.c @@ -98,9 +98,9 @@ #define TSA_SIRP 0x10 struct tsa_entries_area { - void *__iomem entries_start; - void *__iomem entries_next; - void *__iomem last_entry; + void __iomem *entries_start; + void __iomem *entries_next; + void __iomem *last_entry; }; struct tsa_tdm { @@ -117,8 +117,8 @@ struct tsa_tdm { struct tsa { struct device *dev; - void *__iomem si_regs; - void *__iomem si_ram; + void __iomem *si_regs; + void __iomem *si_ram; resource_size_t si_ram_sz; spinlock_t lock; int tdms; /* TSA_TDMx ORed */ @@ -135,27 +135,27 @@ static inline struct tsa *tsa_serial_get_tsa(struct tsa_serial *tsa_serial) return container_of(tsa_serial, struct tsa, serials[tsa_serial->id]); } -static inline void tsa_write32(void *__iomem addr, u32 val) +static inline void tsa_write32(void __iomem *addr, u32 val) { iowrite32be(val, addr); } -static inline void tsa_write8(void *__iomem addr, u32 val) +static inline void tsa_write8(void __iomem *addr, u32 val) { iowrite8(val, addr); } -static inline u32 tsa_read32(void *__iomem addr) +static inline u32 tsa_read32(void __iomem *addr) { return ioread32be(addr); } -static inline void tsa_clrbits32(void *__iomem addr, u32 clr) +static inline void tsa_clrbits32(void __iomem *addr, u32 clr) { tsa_write32(addr, tsa_read32(addr) & ~clr); } -static inline void tsa_clrsetbits32(void *__iomem addr, u32 clr, u32 set) +static inline void tsa_clrsetbits32(void __iomem *addr, u32 clr, u32 set) { tsa_write32(addr, (tsa_read32(addr) & ~clr) | set); } @@ -313,7 +313,7 @@ static u32 tsa_serial_id2csel(struct tsa *tsa, u32 serial_id) static int tsa_add_entry(struct tsa *tsa, struct tsa_entries_area *area, u32 count, u32 serial_id) { - void *__iomem addr; + void __iomem *addr; u32 left; u32 val; u32 cnt; -- 2.41.0