Skip to content

Commit b9af50b

Browse files
committed
ARM: dove: mark 'putc' as inline
This can cause a randconfig warning without the 'inline' flag that every other platform uses: In file included from arch/arm/boot/compressed/misc.c:29: arch/arm/mach-dove/include/mach/uncompress.h:14:13: error: 'putc' defined but not used [-Werror=unused-function] 14 | static void putc(const char c) | ^~~~ Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected]' Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 94ad8aa commit b9af50b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-dove/include/mach/uncompress.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define LSR_THRE 0x20
1313

14-
static void putc(const char c)
14+
static inline void putc(const char c)
1515
{
1616
int i;
1717

@@ -24,7 +24,7 @@ static void putc(const char c)
2424
*UART_THR = c;
2525
}
2626

27-
static void flush(void)
27+
static inline void flush(void)
2828
{
2929
}
3030

0 commit comments

Comments
 (0)