]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: 8532/1: uncompress: mark putc as inline
authorArnd Bergmann <arnd@arndb.de>
Thu, 18 Feb 2016 16:36:23 +0000 (17:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Feb 2016 16:55:42 +0000 (16:55 +0000)
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>
arch/arm/mach-davinci/include/mach/uncompress.h
arch/arm/mach-ks8695/include/mach/uncompress.h
arch/arm/mach-netx/include/mach/uncompress.h
arch/arm/mach-omap1/include/mach/uncompress.h
arch/arm/mach-rpc/include/mach/uncompress.h
arch/arm/mach-sa1100/include/mach/uncompress.h
arch/arm/mach-w90x900/include/mach/uncompress.h

index 8fb97b93b6bb3d85ab0055c444b44f5fb9612a6e..53b456a5bbe03512275e674325a0533786a3fa6b 100644 (file)
@@ -30,7 +30,7 @@
 u32 *uart;
 
 /* PORT_16C550A, in polled non-fifo mode */
-static void putc(char c)
+static inline void putc(char c)
 {
        if (!uart)
                return;
index c089a1aea674ee58a0e217ea3ee5034b08ed9a28..a001c7c34df22ea9badd1fdb71766946a904404a 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/io.h>
 #include <mach/regs-uart.h>
 
-static void putc(char c)
+static inline void putc(char c)
 {
        while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE))
                barrier();
index 5cb1051b5831330beb681a78e2bc00450ff4f744..033875dbc32b8695dec4249a3494a799311b954f 100644 (file)
@@ -40,7 +40,7 @@
 #define FR_BUSY (1<<3)
 #define FR_TXFF (1<<5)
 
-static void putc(char c)
+static inline void putc(char c)
 {
        unsigned long base;
 
index 4869633de8cd36ab65c4ef7317cb97497013c3da..9cca6a56788fee71fa1a54a57a19610b276dbd96 100644 (file)
@@ -45,7 +45,7 @@ static void set_omap_uart_info(unsigned char port)
        *uart_info = port;
 }
 
-static void putc(int c)
+static inline void putc(int c)
 {
        if (!uart_base)
                return;
index 0fd4b0b8ef22ea91b2990588a5158bc226e0f170..654a6f3f2547d25bebeb628ab603c3d1cec4de68 100644 (file)
@@ -76,7 +76,7 @@ int white;
 /*
  * This does not append a newline
  */
-static void putc(int c)
+static inline void putc(int c)
 {
        extern void ll_write_char(char *, char c, char white);
        int x,y;
index 73093dc89829989f0cfb97a748632348b0253594..a1a041b9740bc58533b420cfc4ae7446b5a7dab5 100644 (file)
@@ -19,7 +19,7 @@
 
 #define UART(x)                (*(volatile unsigned long *)(serial_port + (x)))
 
-static void putc(int c)
+static inline void putc(int c)
 {
        unsigned long serial_port;
 
index 4b7c324ff664c64752ec3b5f1118a2145b7cae2f..3855ecebda6e6ed02c375707ddd0c6217eb19edc 100644 (file)
@@ -27,7 +27,7 @@
 #define TX_DONE        (UART_LSR_TEMT | UART_LSR_THRE)
 static volatile u32 * const uart_base = (u32 *)UART0_PA;
 
-static void putc(int ch)
+static inline void putc(int ch)
 {
        /* Check THRE and TEMT bits before we transmit the character.
         */