powerpc/ps3: Move static keyword to the front of declaration
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Wed, 29 Apr 2020 10:00:48 +0000 (18:00 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 4 May 2020 12:29:37 +0000 (22:29 +1000)
Move the static keyword to the front of declaration of 'vuart_bus_priv',
and resolve the following compiler warning that can be seen when
building with warnings enabled (W=1):

drivers/ps3/ps3-vuart.c:867:1: warning: â€˜static’ is not at beginning of declaration [-Wold-style-declaration]
 } static vuart_bus_priv;
 ^

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1588154448-56759-1-git-send-email-wangxiongfeng2@huawei.com
drivers/ps3/ps3-vuart.c

index ddaa5ea..8e80e09 100644 (file)
@@ -858,13 +858,13 @@ static int ps3_vuart_handle_port_interrupt(struct ps3_system_bus_device *dev)
        return 0;
 }
 
-struct vuart_bus_priv {
+static struct vuart_bus_priv {
        struct ports_bmp *bmp;
        unsigned int virq;
        struct mutex probe_mutex;
        int use_count;
        struct ps3_system_bus_device *devices[PORT_COUNT];
-} static vuart_bus_priv;
+} vuart_bus_priv;
 
 /**
  * ps3_vuart_irq_handler - first stage interrupt handler