]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arch/arm/cpu/arm920t/ep93xx/led.c: Mark inline functions as static inline
authorTom Rini <trini@konsulko.com>
Sat, 28 Nov 2015 13:04:43 +0000 (08:04 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 5 Dec 2015 23:22:28 +0000 (18:22 -0500)
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>
arch/arm/cpu/arm920t/ep93xx/led.c

index 61447291854fb0ae047972679bf50607331cae35..ecceb98c756cb091369dd0326bb0a1b6a0a2c85e 100644 (file)
@@ -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;