/* Build the path in the caller buffer */
 
        (void)acpi_ns_build_normalized_path(node, buffer->pointer,
-                                           required_size, no_trailing);
+                                           (u32)required_size, no_trailing);
 
        ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%s [%X]\n",
                          (char *)buffer->pointer, (u32) required_size));
 
        /* Build the path in the allocated buffer */
 
-       (void)acpi_ns_build_normalized_path(node, name_buffer, size,
+       (void)acpi_ns_build_normalized_path(node, name_buffer, (u32)size,
                                            no_trailing);
 
        ACPI_DEBUG_PRINT_RAW((ACPI_DB_NAMES, "%s: Path \"%s\"\n",