summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-01-25 02:42:32 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-02-04 10:58:31 +0300
commit0649a0989fcb02ecaf7b0c15ae6a5051637c8f34 (patch)
treec9859212ab494effee9f1e8c95bed60543392fc3
parent9cf02a0a66da50a990604533fa7d2dbf74aae054 (diff)
downloadlinux-0649a0989fcb02ecaf7b0c15ae6a5051637c8f34.tar.xz
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>
-rw-r--r--include/acpi/actypes.h2
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 */