Skip to content

Commit 4d2b7d4

Browse files
arndbRussell King
authored andcommitted
ARM: 8532/1: uncompress: mark putc as inline
When CONFIG_DEBUG_ICEDCC is set, we don't use the platform specific putc() function, but use icedcc_putc() instead, so putc is unused and causes a compile time warning: In file included from ../arch/arm/boot/compressed/misc.c:28:0: arch/arm/mach-rpc/include/mach/uncompress.h:79:13: warning: 'putc' defined but not used [-Wunused-function] arch/arm/mach-w90x900/include/mach/uncompress.h:30:13: warning: 'putc' defined but not used [-Wunused-function] On most platforms, this does not happen, because putc is defined as 'static inline' so the compiler will automatically drop it when it's unused. This changes the remaining seven platforms to behave the same way. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 7d74a5f commit 4d2b7d4

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
u32 *uart;
3131

3232
/* PORT_16C550A, in polled non-fifo mode */
33-
static void putc(char c)
33+
static inline void putc(char c)
3434
{
3535
if (!uart)
3636
return;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <linux/io.h>
1818
#include <mach/regs-uart.h>
1919

20-
static void putc(char c)
20+
static inline void putc(char c)
2121
{
2222
while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE))
2323
barrier();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#define FR_BUSY (1<<3)
4141
#define FR_TXFF (1<<5)
4242

43-
static void putc(char c)
43+
static inline void putc(char c)
4444
{
4545
unsigned long base;
4646

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void set_omap_uart_info(unsigned char port)
4545
*uart_info = port;
4646
}
4747

48-
static void putc(int c)
48+
static inline void putc(int c)
4949
{
5050
if (!uart_base)
5151
return;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int white;
7676
/*
7777
* This does not append a newline
7878
*/
79-
static void putc(int c)
79+
static inline void putc(int c)
8080
{
8181
extern void ll_write_char(char *, char c, char white);
8282
int x,y;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
2121

22-
static void putc(int c)
22+
static inline void putc(int c)
2323
{
2424
unsigned long serial_port;
2525

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
2828
static volatile u32 * const uart_base = (u32 *)UART0_PA;
2929

30-
static void putc(int ch)
30+
static inline void putc(int ch)
3131
{
3232
/* Check THRE and TEMT bits before we transmit the character.
3333
*/

0 commit comments

Comments
 (0)