From patchwork Thu Sep 28 07:06:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 146139 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3336410vqu; Thu, 28 Sep 2023 07:05:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6mOCGWamlQbKv9f66tPoCOk0wul4GdSNhETZq9abzk7/PzsCiBH/AMn1RefNZ4wqe+338 X-Received: by 2002:a17:903:2348:b0:1c6:2fc0:9626 with SMTP id c8-20020a170903234800b001c62fc09626mr1527279plh.6.1695909940805; Thu, 28 Sep 2023 07:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695909940; cv=none; d=google.com; s=arc-20160816; b=q9ORP7MhEyvNftcOyco0zxGE1jWOAWiJaLzKRefWA6TjdPgIdS6l/A652XwFv5b3B6 S10sgzg88eT3u0ajcMbTsXep2DRb0Gmex64OGLFI9hiqvDjkMez0PCCqtaXf2iLavDyS v6/87drNVpaffhweweJq7n0/vstz7rBwbamVzKPQRdojVu8D3cUnTBtLO5zKuvRvXStU WXl9AB37+g8o4FfaMWNXG/RVSpqoVMa2MpeyZ4tXVY08ZJms4shgC9PWtPgIBwTizzpa OisPtAB4N417o+U6zUDR5spICgKtUk5rXfrQsqCByrPXuUzuj88xX18NKlUKVwNErAHQ CPWg== 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=47AJJX9nKRaseqWZw0zOFwaVtfIj/ZlHaGyGR6Dcxfk=; fh=8Kc64rxAF0/ep7JtUzveSO6N9QMBWtHyiJ9nqNn2Uww=; b=JVQGC1NSm7RsDv68u0clyYppR6PKpIH27SUvXCqfCSEjium2kIdS3OHXpJMEf3Jj5W oA69tqez1LnKTjWbh27BqRt18yjExOgI5CaER4lfjodjWTPbSyn6uF5J9qxygR8PFqV1 j8bS2aYPr/Br0bUJP0ZKyh4JmsVdDQmsYbqUfA8SexcB/A8PEe60IwkJ++eADf8bZ2vP DR0ftXw4reqAAr6NaVdrD9xaup4XDcrKSD/RfwEUfaZAMzpLp3LSR/MAC9mG6UkHHs0b HQmTnpFM5wAXi8G4nFkKNTcKwq1M3xgSEsGIb9kErJc5aqPYYhrpwGUGygfjhMCQzuU+ ls5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vfmm5pwR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id s13-20020a170903200d00b001c1e1fe16c7si3796141pla.236.2023.09.28.07.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 07:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vfmm5pwR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 304148411D55; Thu, 28 Sep 2023 00:09:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231566AbjI1HI5 (ORCPT + 20 others); Thu, 28 Sep 2023 03:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbjI1HH3 (ORCPT ); Thu, 28 Sep 2023 03:07:29 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61F89CE1; Thu, 28 Sep 2023 00:07:24 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 8A68820005; Thu, 28 Sep 2023 07:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695884842; 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=47AJJX9nKRaseqWZw0zOFwaVtfIj/ZlHaGyGR6Dcxfk=; b=Vfmm5pwR4HIUH2yGwUIRgXjmfrlQAhyaPiD2vPPFvp8av61ZO4Q7OiurBI7vkw/qqhOrOM nrU5bJw2KI9xbMWkIK4bpL5AYO6PG9P7h3qVzNKWrLJJg7Up/0fBbM3aTPet38P5DLMT+B SI792MUXhsLThbnQOrYxMQhzeP5XoQbwdHT2hz1nGhtfAz8V0ErcK+bLVKL7vBCNU9RrkP sJSx5LA7NdEnqumPcT9sK0En+6HW5UXatyYuyC6y2uy5GFEAo69dbVoT1huBpBfTVFYxm2 NGp3ZzfvHd/h1lgrBto1dgWxb89tEvtCpMepGhHwxV0hDMfD10zrm1OJ9XU2sg== From: Herve Codina To: Herve Codina , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 v7 05/30] soc: fsl: cpm1: qmc: Remove inline function specifiers Date: Thu, 28 Sep 2023 09:06:23 +0200 Message-ID: <20230928070652.330429-6-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928070652.330429-1-herve.codina@bootlin.com> References: <20230928070652.330429-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 00:09:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778290462433062496 X-GMAIL-MSGID: 1778290462433062496 The inline function specifier is present on some functions but it is better to let the compiler decide inlining or not these functions. Remove inline specifiers. Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") Signed-off-by: Herve Codina Suggested-by: Andrew Lunn Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index 2d2a9d88ba6c..459e0bbd723d 100644 --- a/drivers/soc/fsl/qe/qmc.c +++ b/drivers/soc/fsl/qe/qmc.c @@ -218,37 +218,37 @@ struct qmc { struct qmc_chan *chans[64]; }; -static inline void qmc_write16(void __iomem *addr, u16 val) +static void qmc_write16(void __iomem *addr, u16 val) { iowrite16be(val, addr); } -static inline u16 qmc_read16(void __iomem *addr) +static u16 qmc_read16(void __iomem *addr) { return ioread16be(addr); } -static inline void qmc_setbits16(void __iomem *addr, u16 set) +static void qmc_setbits16(void __iomem *addr, u16 set) { qmc_write16(addr, qmc_read16(addr) | set); } -static inline void qmc_clrbits16(void __iomem *addr, u16 clr) +static void qmc_clrbits16(void __iomem *addr, u16 clr) { qmc_write16(addr, qmc_read16(addr) & ~clr); } -static inline void qmc_write32(void __iomem *addr, u32 val) +static void qmc_write32(void __iomem *addr, u32 val) { iowrite32be(val, addr); } -static inline u32 qmc_read32(void __iomem *addr) +static u32 qmc_read32(void __iomem *addr) { return ioread32be(addr); } -static inline void qmc_setbits32(void __iomem *addr, u32 set) +static void qmc_setbits32(void __iomem *addr, u32 set) { qmc_write32(addr, qmc_read32(addr) | set); }