hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/acpi/acpica/dswload.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: dswload - Dispatcher first pass namespace load callbacks
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -14,7 +14,6 @@
1414 #include "acdispat.h"
1515 #include "acinterp.h"
1616 #include "acnamesp.h"
17
-
1817 #ifdef ACPI_ASL_COMPILER
1918 #include "acdisasm.h"
2019 #endif
....@@ -73,12 +72,10 @@
7372
7473 /* Execution pass */
7574
76
-#ifndef ACPI_NO_METHOD_EXECUTION
7775 walk_state->parse_flags |= ACPI_PARSE_EXECUTE |
7876 ACPI_PARSE_DELETE_TREE;
7977 walk_state->descending_callback = acpi_ds_exec_begin_op;
8078 walk_state->ascending_callback = acpi_ds_exec_end_op;
81
-#endif
8279 break;
8380
8481 default:
....@@ -364,7 +361,7 @@
364361
365362 /* Initialize the op */
366363
367
-#if (defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY))
364
+#ifdef ACPI_CONSTANT_EVAL_ONLY
368365 op->named.path = path;
369366 #endif
370367
....@@ -401,7 +398,6 @@
401398 union acpi_parse_object *op;
402399 acpi_object_type object_type;
403400 acpi_status status = AE_OK;
404
-
405401 #ifdef ACPI_ASL_COMPILER
406402 u8 param_count;
407403 #endif
....@@ -443,7 +439,6 @@
443439
444440 object_type = walk_state->op_info->object_type;
445441
446
-#ifndef ACPI_NO_METHOD_EXECUTION
447442 if (walk_state->op_info->flags & AML_FIELD) {
448443 /*
449444 * If we are executing a method, do not create any namespace objects
....@@ -487,7 +482,6 @@
487482 }
488483 }
489484 }
490
-#endif
491485
492486 if (op->common.aml_opcode == AML_NAME_OP) {
493487