Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] CPM_UART: Removed __init from cpm_uart_init_portdesc to fix warning

cpm_uart_init_portdesc is referenced from non-init code and thus we were
getting the following warning:

WARNING: drivers/built-in.o - Section mismatch: reference to .init.text:cpm_uart_init_portdesc from .text between 'cpm_uart_init' (at offset 0x18020) and 'cpm_uart_drv_remove'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

+3 -3
+1 -1
drivers/serial/cpm_uart/cpm_uart.h
··· 88 88 89 89 /* these are located in their respective files */ 90 90 void cpm_line_cr_cmd(int line, int cmd); 91 - int __init cpm_uart_init_portdesc(void); 91 + int cpm_uart_init_portdesc(void); 92 92 int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con); 93 93 void cpm_uart_freebuf(struct uart_cpm_port *pinfo); 94 94
+1 -1
drivers/serial/cpm_uart/cpm_uart_cpm1.c
··· 185 185 } 186 186 187 187 /* Setup any dynamic params in the uart desc */ 188 - int __init cpm_uart_init_portdesc(void) 188 + int cpm_uart_init_portdesc(void) 189 189 { 190 190 pr_debug("CPM uart[-]:init portdesc\n"); 191 191
+1 -1
drivers/serial/cpm_uart/cpm_uart_cpm2.c
··· 282 282 } 283 283 284 284 /* Setup any dynamic params in the uart desc */ 285 - int __init cpm_uart_init_portdesc(void) 285 + int cpm_uart_init_portdesc(void) 286 286 { 287 287 #if defined(CONFIG_SERIAL_CPM_SMC1) || defined(CONFIG_SERIAL_CPM_SMC2) 288 288 u16 *addr;