Add static to local machine declaration.
PATCH 1/1 Add static to local machine declaration.
Variable akitapda_machine is only used locally, so the static attribute avoids a compiler warning.
--- hw/spitz.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/spitz.c +0 -0
@@ -1041,7 +1041,7 @@ static void terrier_init(ram_addr_t ram_size, kernel_cmdline, initrd_filename, cpu_model, terrier,
0x33f);
}
-QEMUMachine akitapda_machine = {
+static QEMUMachine akitapda_machine = {
.name = "akita",
.desc = "Akita PDA (PXA270)",
.init = akita_init,--
1.5.6.5
Quoted 5 lines · Stefan Weil
Variable
akitapda_machineis only used locally, so the static attribute avoids a compiler warning.Signed-off-by Stefan Weil <[email protected]>
This patch is whitespace broken as is two other patches I have in my queue for you. Could you try using something like git-send-email?
Regards,
Anthony Liguori
Quoted 7 lines · Anthony Liguori
Quoted 5 lines · Stefan Weil
Variable
akitapda_machineis only used locally, so the static attribute avoids a compiler warning.Signed-off-by Stefan Weil <[email protected]>
Quoted 7 lines
This patch is whitespace broken as is two other patches I have in my queue for you. Could you try using something like git-send-email?
Regards,
Anthony Liguori
Sorry, I am still a git-learner...
The appended patch will work.
Regards,
Stefan Weil
Quoted 1 line
From
3c4e4df0b882fd553aa89616e5d3d08a7eca301cMon Sep 17 00:00:00 2001
From: Stefan Weil <[email protected]>
Date: Sat, 23 May 2009 23:49:14 +0200
Subject: [PATCH] Add static to local machine declaration.
Variable akitapda_machine is only used locally, so the static attribute avoids a compiler warning.
--- hw/spitz.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/spitz.c +1 -1
@@ -1041,7 +1041,7 @@ static void terrier_init(ram_addr_t ram_size, kernel_cmdline, initrd_filename, cpu_model, terrier, 0x33f); } -QEMUMachine akitapda_machine = { +static QEMUMachine akitapda_machine = { .name ="akita" , .desc ="Akita PDA (PXA270)" , .init = akita_init,
Signature · 1 line
1.5.6.5