[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] hvmloader: certain methods are not supposed to have a return value
commit 64ce4209cd79d414a1fbef2ede63e5c584b08b40 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Fri Jan 9 17:33:11 2015 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Jan 9 17:33:11 2015 +0100 hvmloader: certain methods are not supposed to have a return value Newer iasl complains about this being violated. Also convert a ShiftLeft(<constant>, <constant>) to a plain constant. Reported-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/firmware/hvmloader/acpi/mk_dsdt.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/firmware/hvmloader/acpi/mk_dsdt.c b/tools/firmware/hvmloader/acpi/mk_dsdt.c index a4b693b..1392525 100644 --- a/tools/firmware/hvmloader/acpi/mk_dsdt.c +++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c @@ -222,12 +222,9 @@ int main(int argc, char **argv) /* Define GPE control method. */ push_block("Scope", "\\_GPE"); - if (dm_version == QEMU_XEN_TRADITIONAL) { - push_block("Method", "_L02"); - } else { - push_block("Method", "_E02"); - } - stmt("Return", "\\_SB.PRSC()"); + push_block("Method", + dm_version == QEMU_XEN_TRADITIONAL ? "_L02" : "_E02"); + stmt("\\_SB.PRSC ()", NULL); pop_block(); pop_block(); /**** Processor end ****/ @@ -374,8 +371,7 @@ int main(int argc, char **argv) push_block("Device", "S%i", slot); { stmt("Name", "_ADR, %#06x0000", slot); push_block("Method", "_EJ0,1"); { - stmt("Store", "ShiftLeft(1, %#06x), B0EJ", slot); - stmt("Return", "0x0"); + stmt("Store", "%#010x, B0EJ", 1 << slot); } pop_block(); stmt("Name", "_SUN, %i", slot); } pop_block(); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |