snapcraft: remove libjson-c3 stage package, it is not required
Removing libjson-c3 stage package fixes a snap build failure on
Xenial, it is not required, so remove it.
Fixes snap build error:
Fetched 4780 kB in 0s (0 B/s)
Failed to fetch stage packages: Error downloading packages for
part 'fwts': The package 'libjson-c3' was not found..
Fixes: a6d5fc26e93d ("snapcraft: add missing stage packages")
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>
acpi: gtdt: add checking the valid base physical address
Some buggy firmwares on Arm server implement GTDT table without impementing
reasonable base physical address and causes kernel complains about failing
to get base address. Add checking for the valid base addresses on GTDT
table.
Signed-off-by: Ivan Hu <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
lib: fwts_acpi_tables: unconstify data and don't strcpy ACPI table ids
Although it seems a good idea to make the ACPI table data const, we
may need to modify it when patching pointers if we make cached copies
of the data, so unconstify it.
Also, don't strncpy ACPI table IDs, instead memcpy them as they are
not really strings with terminating zero bytes.
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>