| .. | .. |
|---|
| 4 | 4 | * Module Name: nsxfname - Public interfaces to the ACPI subsystem |
|---|
| 5 | 5 | * ACPI Namespace oriented interfaces |
|---|
| 6 | 6 | * |
|---|
| 7 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
|---|
| 7 | + * Copyright (C) 2000 - 2020, Intel Corp. |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | *****************************************************************************/ |
|---|
| 10 | 10 | |
|---|
| .. | .. |
|---|
| 425 | 425 | } |
|---|
| 426 | 426 | |
|---|
| 427 | 427 | 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); |
|---|
| 430 | 430 | } |
|---|
| 431 | 431 | |
|---|
| 432 | 432 | /* Copy the fixed-length data */ |
|---|
| .. | .. |
|---|
| 495 | 495 | |
|---|
| 496 | 496 | /* Table must be a DSDT or SSDT */ |
|---|
| 497 | 497 | |
|---|
| 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)) { |
|---|
| 500 | 500 | return (AE_BAD_HEADER); |
|---|
| 501 | 501 | } |
|---|
| 502 | 502 | |
|---|
| .. | .. |
|---|
| 516 | 516 | |
|---|
| 517 | 517 | method_flags = *parser_state.aml++; |
|---|
| 518 | 518 | 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); |
|---|
| 520 | 520 | |
|---|
| 521 | 521 | /* |
|---|
| 522 | 522 | * Allocate resources up-front. We don't want to have to delete a new |
|---|