From patchwork Fri Sep 22 07:58:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 143552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5752031vqi; Fri, 22 Sep 2023 10:28:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBxiaVxqm+GGPvSMr6uNu87bdJCke50GdT4kLtvxJMentvJokJukONvC0pWShYdGvrj0kk X-Received: by 2002:a17:902:f7c2:b0:1c5:d91e:3a1 with SMTP id h2-20020a170902f7c200b001c5d91e03a1mr88277plw.28.1695403716318; Fri, 22 Sep 2023 10:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695403716; cv=none; d=google.com; s=arc-20160816; b=vKToYiNUBmwr8oCqG7lROjfI4I137NuUu9Hnb18n0Sfc3GX32qPKZWrAQhBSj8rtj2 RmCSuijc8NzdOCChLRSQn/1QHUlMJVugdtLigic5KMjEyEvNZHYqH4bDTN4+c0r9xYSH KeddQjYKIhumu3ftIln2Y5TAqtkp1YwS9xob0pxq+2dMd1+RQcsZewZn9D2S0e5MDao9 yKqJMeOFT4nj/xwpvoa079kbHeA1mrKdeVHYQX7nL/xc6pDtQN2CUr83b6TD4Pu1ZNqT fGoxRs4pF3cIOh+Uyoneo8NZFPIGG2l0hHtm5664gEfHiQ/FISYtqoRLvxWpgGvt3eAE H4BQ== 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=x+RB2ITbfqKP6mO7lXP9MlFfW3RztOHoR8uJSPHnXIA=; fh=5rCQDomVZxLXb7yR2oN4iSS3zxUnzGJP2HoQaRzhQu0=; b=XAKcMG5PmjlfgyBEx3e3UiU/O7EVzeBZjGpHVqn0klWFhyb+HOr54uS6t/SI1MT/6Y ymChPSrWPDpGP78NJh1KUCnWA2KnqqBRdXT81WuuWxuo9wxi64EYcN5nL1c1nZtr1SG1 +LuHgCklzuif0Vcleooby9JXFCoafm3udRx2PAogRt06HXYhn4336aCaUAAr04REXh7T DDmZIhQMzZFIDGjmvxbLu7xS23dp/DL7qWjpl8wl7qfc7+dLiGY8R93XFcwtamS7R67f UtWp4adN+vvjQqn6QLuBBC+rFoiDcquca7jXM7tKdqnp1WFhGzDmBlofyY9XklEJy0DE o00g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WEMjZBlx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001c1f1394bf9si3928763plb.357.2023.09.22.10.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 10:28:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WEMjZBlx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 07ADE8374A6E; Fri, 22 Sep 2023 01:00:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232009AbjIVH7y (ORCPT + 30 others); Fri, 22 Sep 2023 03:59:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbjIVH7j (ORCPT ); Fri, 22 Sep 2023 03:59:39 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D23F192; Fri, 22 Sep 2023 00:59:28 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 45C961BF218; Fri, 22 Sep 2023 07:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695369567; 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=x+RB2ITbfqKP6mO7lXP9MlFfW3RztOHoR8uJSPHnXIA=; b=WEMjZBlxzwK41hS8zjzlvato3t8EDTQUHjA7bwTASBJaJpSBtr7L72lqPrScVADR9Fb3gq ZZ0Zr8DeC6ZUx+cwIWmSJRZweHE6CYWEgR8FeG2J1UoO3cs4S4TxpP1i1UVPYFHsdNmTvq cSl3Y13YO481t+jxusQz0LXPq41hWiEtTg7IMTLZoOwXfuv4R8CZDk5J4ZemY3xO5c3eNB ZLib6V5aM5gAZ6lSqLMvoKzR00GpDOHGH//YOBKpItKSYupbCz3XJ9LJsj1dajVakJhUQs eYlZU4DHvEGWOki4pxjmMrUROFaXsgs2humfKREbFKR1oZJ+GYxmVR7sHfsrHA== 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 v6 01/30] soc: fsl: cpm1: tsa: Fix __iomem addresses declaration Date: Fri, 22 Sep 2023 09:58:36 +0200 Message-ID: <20230922075913.422435-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230922075913.422435-1-herve.codina@bootlin.com> References: <20230922075913.422435-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:00:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777759647257701845 X-GMAIL-MSGID: 1777759647257701845 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 3646153117b3..e0527b9efd05 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;