diff options
author | Tom Rini <trini@konsulko.com> | 2015-11-28 13:04:43 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-12-05 23:22:28 (GMT) |
commit | eada086f85a9bd3b8ac3a1db3d51b469869845c4 (patch) | |
tree | 70ec535ded1c53b6356d2b88ba239ed2d50ea2fb /arch/arm | |
parent | c6bb23c819b5dcbc5c3491673f5e408c0b9c38b3 (diff) | |
download | u-boot-fsl-qoriq-eada086f85a9bd3b8ac3a1db3d51b469869845c4.tar.xz |
arch/arm/cpu/arm920t/ep93xx/led.c: Mark inline functions as static inline
With gcc-5.x we get warning about inline non-static functions referring to
static elements.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/arm920t/ep93xx/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/arm920t/ep93xx/led.c b/arch/arm/cpu/arm920t/ep93xx/led.c index 6144729..ecceb98 100644 --- a/arch/arm/cpu/arm920t/ep93xx/led.c +++ b/arch/arm/cpu/arm920t/ep93xx/led.c @@ -13,7 +13,7 @@ static uint8_t saved_state[2] = {STATUS_LED_OFF, STATUS_LED_OFF}; static uint32_t gpio_pin[2] = {1 << STATUS_LED_GREEN, 1 << STATUS_LED_RED}; -inline void switch_LED_on(uint8_t led) +static inline void switch_LED_on(uint8_t led) { register struct gpio_regs *gpio = (struct gpio_regs *)GPIO_BASE; @@ -21,7 +21,7 @@ inline void switch_LED_on(uint8_t led) saved_state[led] = STATUS_LED_ON; } -inline void switch_LED_off(uint8_t led) +static inline void switch_LED_off(uint8_t led) { register struct gpio_regs *gpio = (struct gpio_regs *)GPIO_BASE; |