Skip to content
  • Arnd Bergmann's avatar
    5fa4accf
    serial: meson: hide an unused function · 5fa4accf
    Arnd Bergmann authored
    
    
    The newly added meson_uart_enable_tx_engine function is only called
    from the console setup, not the runtime uart, which has an open-coded
    version of the same register access. This produces a harmless warning
    when the console code is disabled:
    
    drivers/tty/serial/meson_uart.c:127:13: error: 'meson_uart_enable_tx_engine' defined but not used [-Werror=unused-function]
    
    Let's move the function inside of the #ifdef to avoid the warning.
    
    Fixes: ba50f1df ("serial: meson: remove unneeded variable assignment in meson_serial_port_write")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    5fa4accf
    serial: meson: hide an unused function
    Arnd Bergmann authored
    
    
    The newly added meson_uart_enable_tx_engine function is only called
    from the console setup, not the runtime uart, which has an open-coded
    version of the same register access. This produces a harmless warning
    when the console code is disabled:
    
    drivers/tty/serial/meson_uart.c:127:13: error: 'meson_uart_enable_tx_engine' defined but not used [-Werror=unused-function]
    
    Let's move the function inside of the #ifdef to avoid the warning.
    
    Fixes: ba50f1df ("serial: meson: remove unneeded variable assignment in meson_serial_port_write")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading