]> git.baikalelectronics.ru Git - kernel.git/commit
serial: stm32: make info structs static to avoid sparse warnings
authorBen Dooks <ben-linux@fluff.org>
Thu, 21 Jul 2022 21:24:30 +0000 (22:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jul 2022 08:35:23 +0000 (10:35 +0200)
commit40fcc6c17c40426a9e87a5a18dbc726771ebe074
tree4cc000b42df89e05dbb5bb3250ad4c65e24c2b0c
parent41a52713a09c15f1209db09ace9bf8adde411cdc
serial: stm32: make info structs static to avoid sparse warnings

The info structs are local only to the stm32-usart.c driver and are
triggering sparse warnings about being undecalred. Move these into
the main driver code and make them static to avoid the following
warnings:

drivers/tty/serial/stm32-usart.h:42:25: warning: symbol 'stm32f4_info' was not declared. Should it be static?
drivers/tty/serial/stm32-usart.h:63:25: warning: symbol 'stm32f7_info' was not declared. Should it be static?
drivers/tty/serial/stm32-usart.h:85:25: warning: symbol 'stm32h7_info' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Link: https://lore.kernel.org/r/20220721212430.453192-1-ben-linux@fluff.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/stm32-usart.h