Skip to content

Commit 8dbb75c

Browse files
miray-sbrafaeljw
authored andcommitted
ACPICA: cast length arguement to acpi_ns_build_normalized_path() as u32
ACPICA commit d216e4c8d886d7fb82697948c4fee8a5777a1a5a Link: acpica/acpica@d216e4c8 Signed-off-by: Sven Barth <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Erik Kaneda <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 45bbbbe commit 8dbb75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/acpica/nsnames.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ acpi_ns_handle_to_pathname(acpi_handle target_handle,
164164
/* Build the path in the caller buffer */
165165

166166
(void)acpi_ns_build_normalized_path(node, buffer->pointer,
167-
required_size, no_trailing);
167+
(u32)required_size, no_trailing);
168168

169169
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%s [%X]\n",
170170
(char *)buffer->pointer, (u32) required_size));
@@ -315,7 +315,7 @@ char *acpi_ns_get_normalized_pathname(struct acpi_namespace_node *node,
315315

316316
/* Build the path in the allocated buffer */
317317

318-
(void)acpi_ns_build_normalized_path(node, name_buffer, size,
318+
(void)acpi_ns_build_normalized_path(node, name_buffer, (u32)size,
319319
no_trailing);
320320

321321
ACPI_DEBUG_PRINT_RAW((ACPI_DB_NAMES, "%s: Path \"%s\"\n",

0 commit comments

Comments
 (0)