]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Move static keyword at beginning of declaration
authorMathieu Malaterre <malat@debian.org>
Sat, 2 Feb 2019 13:05:35 +0000 (14:05 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Feb 2019 09:44:19 +0000 (20:44 +1100)
Move the static keyword around to remove the following warnings (W=1):

  arch/powerpc/platforms/ps3/os-area.c:212:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]
  arch/powerpc/platforms/ps3/system-bus.c:45:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/ps3/os-area.c
arch/powerpc/platforms/ps3/system-bus.c

index f5387ad822798125402d76a530a6d7cc2c1733f5..4d65c538002063045950ed03a2fb3c20e572edd4 100644 (file)
@@ -205,11 +205,11 @@ static const struct os_area_db_id os_area_db_id_rtc_diff = {
  *  3) The number of seconds from 1970 to 2000.
  */
 
-struct saved_params {
+static struct saved_params {
        unsigned int valid;
        s64 rtc_diff;
        unsigned int av_multi_out;
-} static saved_params;
+} saved_params;
 
 static struct property property_rtc_diff = {
        .name = "linux,rtc_diff",
index 5cc35d6b94b6c8627527d2232ebf879f73b8e0d6..7c227e784247c0df26da431e512a685ca1cc9ecf 100644 (file)
@@ -37,12 +37,12 @@ static struct device ps3_system_bus = {
 };
 
 /* FIXME: need device usage counters! */
-struct {
+static struct {
        struct mutex mutex;
        int sb_11; /* usb 0 */
        int sb_12; /* usb 0 */
        int gpu;
-} static usage_hack;
+} usage_hack;
 
 static int ps3_is_device(struct ps3_system_bus_device *dev, u64 bus_id,
                         u64 dev_id)