Message ID | 20230809132757.2470544-6-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2828026vqr; Wed, 9 Aug 2023 07:12:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlBC1BMxx4d7WUwkEgUxOrjGAtIr7BW177Q/+9CZAs2rN15nJHjgIx8yn9EoE71/UiKlN7 X-Received: by 2002:a17:902:f686:b0:1bc:16cf:fc30 with SMTP id l6-20020a170902f68600b001bc16cffc30mr3173725plg.63.1691590379242; Wed, 09 Aug 2023 07:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691590379; cv=none; d=google.com; s=arc-20160816; b=WuIteFf+miFqyH2JQswoZCCpjeglo8FasLaCOo5A7za/7Beb24YN66nyZzJL3Ew+48 KRU0++/Ammn8zJxbtv9kWS2ItxiN+k7gVs6zS0wPnXgQ4EwDaafjuMsavLP+t4jtEhJU yswrsNgNhY0oguJfC/ZP98vEJsRKOQsINpchOAPTDBcS+jWDowaMdndahrUoxqpqcpNz GYX0cUrcnQVr+XwC4y65/XWIObvYvpU5m1y7NI0Ps30zWE5zP98EXsQHdS6Sg/d3KDp1 w+0VdChT4hKDYIYWR7hd3qTI67nw+3seYawnfLWtDFziKtlW/PCoIWlsiZxw65kaJ4VG hTLQ== 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=6pKpHb8NJJlN43F/1tb7BbbReKE2Hzh22vW4ZSWQNOQ=; fh=OtJVFpZ5Y8/ND7g8QcUIbRSFhG4LznwcYYtG4zWKevM=; b=Y4e/Ow1ouuyth6NkuekiKf7qP+fw7qZ49Pvovo8WTVHETAssgjYbC0OkseSGWqqvU3 hNBOLt9s8mC3/GTsv02eecdCs1Y803bpDxghJG6M0fdfEI1lYHmK2gvNZsZwHozhLmZ7 +7qsz1E7EBG14+7F6vyjiKtJUQVuckwj5VIEP4ifBiEiBEtt/aoNOFjKfwV3GTDc6HyP ++wEhr451UeLlIZTh7Ujs8JEBekcFYg7QE4I/L5Cx6VzRyUVtRxM0jQ1z6Q1pirVEeWb nktcOnUbG5XC/I3Yd/AZWhvBiNcfG86xYM4HpNooX5OoktxqiQfN7Fy1VgRv25KL90kV xssA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ahyEiPOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a170902684d00b001b876cb3e53si8945158pln.211.2023.08.09.07.12.22; Wed, 09 Aug 2023 07:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ahyEiPOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233046AbjHIN2h (ORCPT <rfc822;craechal@gmail.com> + 99 others); Wed, 9 Aug 2023 09:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232975AbjHIN21 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Aug 2023 09:28:27 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB8D2681; Wed, 9 Aug 2023 06:28:17 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 0B1604001A; Wed, 9 Aug 2023 13:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691587696; 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=6pKpHb8NJJlN43F/1tb7BbbReKE2Hzh22vW4ZSWQNOQ=; b=ahyEiPOeEAKhB/I99oY0ehVsfed49CSlzHo7LS2sIQORufwpzY4uf45p54uihhp5Wgyqfj y1x00NkL/nyX/x+vOg5+LCqTb6u8P0qRPQH/1TzhItZgM5okpobB7tMrqEwy7lXv/D+AtC /BdeAZdVgZAiLFGBJkW1P1qZ3gecjcOGNY1r6Ca0DIeKPIoqUb/o+CiFKhM0LIZqAD7xBo u7IcrCQ3t5lPByvVeE+gfLhxv/H+dqmfTfZkWlTYRr92CldbZBwAVWluH+6vhLcWnazc6x ZKowCpJkMUm78RDZyUMAZOKQCJnS8W1eT3cFlmz2vX95OZyU06v4bIrmqGU3Bg== From: Herve Codina <herve.codina@bootlin.com> To: Herve Codina <herve.codina@bootlin.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Andrew Lunn <andrew@lunn.ch>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Lee Jones <lee@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Qiang Zhao <qiang.zhao@nxp.com>, Li Yang <leoyang.li@nxp.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Shengjiu Wang <shengjiu.wang@gmail.com>, Xiubo Li <Xiubo.Lee@gmail.com>, Fabio Estevam <festevam@gmail.com>, Nicolin Chen <nicoleotsuka@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Randy Dunlap <rdunlap@infradead.org> 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, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v3 05/28] soc: fsl: cpm1: qmc: Remove inline function specifiers Date: Wed, 9 Aug 2023 15:27:32 +0200 Message-ID: <20230809132757.2470544-6-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809132757.2470544-1-herve.codina@bootlin.com> References: <20230809132757.2470544-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=-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,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773761073264172621 X-GMAIL-MSGID: 1773761073264172621 |
Series |
Add support for QMC HDLC, framer infrastruture and PEF2256 framer
|
|
Commit Message
Herve Codina
Aug. 9, 2023, 1:27 p.m. UTC
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 <herve.codina@bootlin.com>
Suggested-by: Andrew Lunn <andrew@lunn.ch>
---
drivers/soc/fsl/qe/qmc.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Comments
Le 09/08/2023 à 15:27, Herve Codina a écrit : > The inline function specifier is present on some functions but it is > better to let the compiler decide inlining or not these functions. And anyway the compiler can decide to not inline a function marked inline since commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly") followed by commit 889b3c1245de ("compiler: remove CONFIG_OPTIMIZE_INLINING entirely"). So unless you mark it __always_inline you have no guarranty that the compiler does what you tell it to do. > > Remove inline specifiers. > > Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") > Signed-off-by: Herve Codina <herve.codina@bootlin.com> > Suggested-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> > --- > 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); > }
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); }