ACPICA: Add a missing pair of parentheses
"Linux Kernel Mailing List" <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/0649a0989fcb02ecaf7b0c15ae6a5051637c8f34 Commit: 0649a0989fcb02ecaf7b0c15ae6a5051637c8f34 Parent: 9cf02a0a66da50a990604533fa7d2dbf74aae054 Refname: refs/heads/master Author: Jung-uk Kim <[email protected]> AuthorDate: Wed Jan 24 15:42:32 2018 -0800 Committer: Rafael J. Wysocki <[email protected]> CommitDate: Sun Feb 4 08:58:31 2018 +0100 ACPICA: Add a missing pair of parentheses Signed-off-by: Jung-uk Kim <jkim@free_BSD.org> Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> --- include/acpi/actypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html