Commit b9af50bc authored by Arnd Bergmann's avatar Arnd Bergmann

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: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20210927095343.1015422-1-arnd@kernel.org'
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 94ad8aac
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define LSR_THRE 0x20 #define LSR_THRE 0x20
static void putc(const char c) static inline void putc(const char c)
{ {
int i; int i;
...@@ -24,7 +24,7 @@ static void putc(const char c) ...@@ -24,7 +24,7 @@ static void putc(const char c)
*UART_THR = c; *UART_THR = c;
} }
static void flush(void) static inline void flush(void)
{ {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment