diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2018-01-25 00:42:32 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-04 08:58:31 +0100 |
commit | 0649a0989fcb02ecaf7b0c15ae6a5051637c8f34 (patch) | |
tree | c9859212ab494effee9f1e8c95bed60543392fc3 /include/acpi | |
parent | ACPICA: Prefer ACPI_TO_POINTER() over ACPI_ADD_PTR() (diff) | |
download | linux-0649a0989fcb02ecaf7b0c15ae6a5051637c8f34.tar.xz linux-0649a0989fcb02ecaf7b0c15ae6a5051637c8f34.zip |
ACPICA: Add a missing pair of parentheses
Signed-off-by: Jung-uk Kim <jkim@free_BSD.org>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/actypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 0b6b55f1e597..4fed3310235a 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h @@ -532,7 +532,7 @@ typedef u64 acpi_integer; #define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (acpi_uintptr_t) (p)) #define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8, (a)) + (acpi_size)(b))) #define ACPI_SUB_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8, (a)) - (acpi_size)(b))) -#define ACPI_PTR_DIFF(a, b) (acpi_size) (ACPI_CAST_PTR (u8, (a)) - ACPI_CAST_PTR (u8, (b))) +#define ACPI_PTR_DIFF(a, b) ((acpi_size) (ACPI_CAST_PTR (u8, (a)) - ACPI_CAST_PTR (u8, (b)))) /* Pointer/Integer type conversions */ |