hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/acpi/acpica/nsxfname.c
....@@ -4,7 +4,7 @@
44 * Module Name: nsxfname - Public interfaces to the ACPI subsystem
55 * ACPI Namespace oriented interfaces
66 *
7
- * Copyright (C) 2000 - 2018, Intel Corp.
7
+ * Copyright (C) 2000 - 2020, Intel Corp.
88 *
99 *****************************************************************************/
1010
....@@ -425,8 +425,8 @@
425425 }
426426
427427 if (cls) {
428
- next_id_string = acpi_ns_copy_device_id(&info->class_code,
429
- cls, next_id_string);
428
+ (void)acpi_ns_copy_device_id(&info->class_code,
429
+ cls, next_id_string);
430430 }
431431
432432 /* Copy the fixed-length data */
....@@ -495,8 +495,8 @@
495495
496496 /* Table must be a DSDT or SSDT */
497497
498
- if (!ACPI_COMPARE_NAME(table->signature, ACPI_SIG_DSDT) &&
499
- !ACPI_COMPARE_NAME(table->signature, ACPI_SIG_SSDT)) {
498
+ if (!ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_DSDT) &&
499
+ !ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_SSDT)) {
500500 return (AE_BAD_HEADER);
501501 }
502502
....@@ -516,7 +516,7 @@
516516
517517 method_flags = *parser_state.aml++;
518518 aml_start = parser_state.aml;
519
- aml_length = ACPI_PTR_DIFF(parser_state.pkg_end, aml_start);
519
+ aml_length = (u32)ACPI_PTR_DIFF(parser_state.pkg_end, aml_start);
520520
521521 /*
522522 * Allocate resources up-front. We don't want to have to delete a new