Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1309778 > unrolled thread

[PATCH 3/4] ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t'.

Started byLv Zheng <lv.zheng@intel.com>
First post2016-01-15 01:20 +0100
Last post2016-01-15 01:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t'. Lv Zheng <lv.zheng@intel.com> - 2016-01-15 01:20 +0100

#1309778 — [PATCH 3/4] ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t'.

FromLv Zheng <lv.zheng@intel.com>
Date2016-01-15 01:20 +0100
Subject[PATCH 3/4] ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t'.
Message-ID<qR0hs-6sG-3@gated-at.bofh.it>
From: Sascha Wildner <saw@online.de>

Signed-off-by: Sascha Wildner <saw@online.de>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
---
 drivers/acpi/acpica/dbdisply.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/acpica/dbdisply.c b/drivers/acpi/acpica/dbdisply.c
index f10c158..502bb58 100644
--- a/drivers/acpi/acpica/dbdisply.c
+++ b/drivers/acpi/acpica/dbdisply.c
@@ -599,12 +599,14 @@ void acpi_db_display_calling_tree(void)
 
 void acpi_db_display_object_type(char *object_arg)
 {
+	acpi_size arg;
 	acpi_handle handle;
 	struct acpi_device_info *info;
 	acpi_status status;
 	u32 i;
 
-	handle = ACPI_TO_POINTER(strtoul(object_arg, NULL, 16));
+	arg = strtoul(object_arg, NULL, 16);
+	handle = ACPI_TO_POINTER(arg);
 
 	status = acpi_get_object_info(handle, &info);
 	if (ACPI_FAILURE(status)) {
-- 
1.7.10

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web