linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erik Schmauss <erik.schmauss@intel.com>
To: linux-acpi@vger.kernel.org
Cc: Jung-uk Kim <jkim@FreeBSD.org>, Jung-uk Kim <jkim@free_BSD.org>,
	Erik Schmauss <erik.schmauss@intel.com>
Subject: [PATCH 4/6] ACPICA: Add a missing pair of parentheses
Date: Wed, 24 Jan 2018 15:42:32 -0800	[thread overview]
Message-ID: <20180124234234.19828-5-erik.schmauss@intel.com> (raw)
In-Reply-To: <20180124234234.19828-1-erik.schmauss@intel.com>

From: Jung-uk Kim <jkim@FreeBSD.org>

Signed-off-by: Jung-uk Kim <jkim@free_BSD.org>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
---
 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 */
 
-- 
2.14.3


  parent reply	other threads:[~2018-01-24 23:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 23:42 [PATCH 0/6] ACPICA version 20180105 Erik Schmauss
2018-01-24 23:42 ` [PATCH 1/6] ACPICA: Linux: add support for X32 ABI compilation Erik Schmauss
2018-01-24 23:42 ` [PATCH 2/6] ACPICA: Avoid NULL pointer arithmetic Erik Schmauss
2018-01-24 23:42 ` [PATCH 3/6] ACPICA: Prefer ACPI_TO_POINTER() over ACPI_ADD_PTR() Erik Schmauss
2018-01-24 23:42 ` Erik Schmauss [this message]
2018-01-24 23:42 ` [PATCH 6/6] ACPICA: Update version to 20180105 Erik Schmauss
2018-02-04  8:00 ` [PATCH 0/6] ACPICA version 20180105 Rafael J. Wysocki
2018-02-08  9:40 ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180124234234.19828-5-erik.schmauss@intel.com \
    --to=erik.schmauss@intel.com \
    --cc=jkim@FreeBSD.org \
    --cc=jkim@free_BSD.org \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).