ACPICA: Macros: remove pointer math on a null pointer
authorBob Moore <robert.moore@intel.com>
Fri, 16 Aug 2019 21:43:22 +0000 (14:43 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 20 Aug 2019 22:00:36 +0000 (00:00 +0200)
commit779cc7ce3dc519b05f274b79fb5a6c1703f373b5
tree00edfeb5093adade55736ecdf4074a7b8c5c9a47
parent67a72420a326b45514deb3f212085fb2cd1595b5
ACPICA: Macros: remove pointer math on a null pointer

ACPICA commit 02bbca5070e42d298c9b824300aa0eb8a082d797

Causes warnings on some compilers and/or tools.
Changed ACPI_TO_POINTER to use ACPI_CAST_PTR instead of using
arithmetic.

Link: https://github.com/acpica/acpica/commit/02bbca50
Reported-by: Qian Cai <cai@lca.pw>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/actypes.h