Fix Error: board/cxd56_leds.c:43:20: error: unused function 'led_clrbits' [-Werror,-Wunused-function]

static inline void led_clrbits(unsigned int clrbits)
                   ^
Error: board/cxd56_leds.c:66:20: error: unused function 'led_setbits' [-Werror,-Wunused-function]
static inline void led_setbits(unsigned int setbits)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-29 02:36:10 +08:00 committed by Petro Karashchenko
parent 940ee2c8b1
commit e46bdeca1d
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@
* Private Functions
****************************************************************************/
#ifndef CONFIG_ARCH_LEDS_CPU_ACTIVITY
static inline void led_clrbits(unsigned int clrbits)
{
if ((clrbits & BOARD_LED1_BIT) != 0)
@ -85,6 +86,7 @@ static inline void led_setbits(unsigned int setbits)
cxd56_gpio_write(GPIO_LED4, true);
}
}
#endif
/****************************************************************************
* Public Functions