serial: sifive: Declare PM operations as static
authorSamuel Holland <samuel.holland@sifive.com>
Mon, 13 Nov 2023 02:31:19 +0000 (18:31 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 19:31:18 +0000 (19:31 +0000)
They are only used within this file, so they should have static linkage.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20231113023122.1185407-1-samuel.holland@sifive.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sifive.c

index 3541235a3ab6936ae4d1c3795c65eebe887ba5d4..a4cc569a78a256746e0e4cc262fc2abfe8ad5214 100644 (file)
@@ -1031,8 +1031,8 @@ static int sifive_serial_resume(struct device *dev)
        return uart_resume_port(&sifive_serial_uart_driver, &ssp->port);
 }
 
-DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
-                        sifive_serial_resume);
+static DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
+                               sifive_serial_resume);
 
 static const struct of_device_id sifive_serial_of_match[] = {
        { .compatible = "sifive,fu540-c000-uart0" },