Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601988

[PATCH 6/6] gpio: mvebu: let the compiler inline

From Ralph Sennhauser <ralph.sennhauser@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 6/6] gpio: mvebu: let the compiler inline
Date 2017-03-16 07:40 +0100
Message-ID <tlxeO-2IL-7@gated-at.bofh.it> (permalink)
References <tlxeN-2IL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


A modern compiler should know better when to inline, so drop the inline
keywords.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
---
 drivers/gpio/gpio-mvebu.c | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index d9aa77b..029f43c 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -99,35 +99,32 @@ struct mvebu_gpio_chip {
  * Functions returning addresses of individual registers for a given
  * GPIO controller.
  */
-static inline void __iomem *mvebu_gpioreg_out(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_out(struct mvebu_gpio_chip *mvchip)
 {
 	return mvchip->membase + GPIO_OUT_OFF;
 }
 
-static inline void __iomem *mvebu_gpioreg_blink(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_blink(struct mvebu_gpio_chip *mvchip)
 {
 	return mvchip->membase + GPIO_BLINK_EN_OFF;
 }
 
-static inline void __iomem *
-mvebu_gpioreg_io_conf(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_io_conf(struct mvebu_gpio_chip *mvchip)
 {
 	return mvchip->membase + GPIO_IO_CONF_OFF;
 }
 
-static inline void __iomem *mvebu_gpioreg_in_pol(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_in_pol(struct mvebu_gpio_chip *mvchip)
 {
 	return mvchip->membase + GPIO_IN_POL_OFF;
 }
 
-static inline void __iomem *
-mvebu_gpioreg_data_in(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_data_in(struct mvebu_gpio_chip *mvchip)
 {
 	return mvchip->membase + GPIO_DATA_IN_OFF;
 }
 
-static inline void __iomem *
-mvebu_gpioreg_edge_cause(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_edge_cause(struct mvebu_gpio_chip *mvchip)
 {
 	int cpu;
 
@@ -144,8 +141,7 @@ mvebu_gpioreg_edge_cause(struct mvebu_gpio_chip *mvchip)
 	}
 }
 
-static inline void __iomem *
-mvebu_gpioreg_edge_mask(struct mvebu_gpio_chip *mvchip)
+static void __iomem *mvebu_gpioreg_edge_mask(struct mvebu_gpio_chip *mvchip)
 {
 	int cpu;
 
-- 
2.10.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] gpio: mvebu: prepatatory cleanup for pwm-fan support Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
  [PATCH 6/6] gpio: mvebu: let the compiler inline Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 6/6] gpio: mvebu: let the compiler inline Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100
      Re: [PATCH 6/6] gpio: mvebu: let the compiler inline Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-17 10:10 +0100
  [PATCH 2/6] gpio: mvebu: start multiline block comments with blank line Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 2/6] gpio: mvebu: start multiline block comments with  blank line Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100
  [PATCH 1/6] gpio: mvebu: checkpatch: block comment fixes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 1/6] gpio: mvebu: checkpatch: block comment fixes Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100
  [PATCH 4/6] gpio: mvebu: checkpatch: whitespace fixes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 4/6] gpio: mvebu: checkpatch: whitespace fixes Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100

csiph-web