* [PATCH] serial: efm32: add module_exit
@ 2014-05-25 21:13 Vincent Stehlé
2014-05-25 21:57 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Vincent Stehlé @ 2014-05-25 21:13 UTC (permalink / raw)
To: linux-arm-kernel
Add missing specification of efm32_uart_exit as module_exit.
This fixes the following compilation warning:
drivers/tty/serial/efm32-uart.c:840:123: warning: ?efm32_uart_exit? defined but not used [-Wunused-function]
Signed-off-by: Vincent Stehl? <vincent.stehle@laposte.net>
Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Jiri Slaby <jslaby@suse.cz>
---
Hi,
This can be seen with e.g. arm allmodconfig.
Best regards,
V.
drivers/tty/serial/efm32-uart.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/serial/efm32-uart.c b/drivers/tty/serial/efm32-uart.c
index c167a71..b373f64 100644
--- a/drivers/tty/serial/efm32-uart.c
+++ b/drivers/tty/serial/efm32-uart.c
@@ -842,6 +842,7 @@ static void __exit efm32_uart_exit(void)
platform_driver_unregister(&efm32_uart_driver);
uart_unregister_driver(&efm32_uart_reg);
}
+module_exit(efm32_uart_exit);
MODULE_AUTHOR("Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>");
MODULE_DESCRIPTION("EFM32 UART/USART driver");
--
2.0.0.rc2
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] serial: efm32: add module_exit
2014-05-25 21:13 [PATCH] serial: efm32: add module_exit Vincent Stehlé
@ 2014-05-25 21:57 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2014-05-25 21:57 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, May 25, 2014 at 11:13:05PM +0200, Vincent Stehl? wrote:
> Add missing specification of efm32_uart_exit as module_exit.
>
> This fixes the following compilation warning:
>
> drivers/tty/serial/efm32-uart.c:840:123: warning: ?efm32_uart_exit? defined but not used [-Wunused-function]
This warning doesn't occur in my builds, probably because I have
MODULES=n. I can reproduce it on allmodconfig though.
> Signed-off-by: Vincent Stehl? <vincent.stehle@laposte.net>
> Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Acked-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-25 21:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-25 21:13 [PATCH] serial: efm32: add module_exit Vincent Stehlé
2014-05-25 21:57 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).