Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Remove bool usage from ACPICA.

The use of "bool" is not safe for ACPICA code where it is originally using
a "BOOLEAN" defined as "unsigned char".

This patch removes the only "bool" usage from kernel source tree to reduce
the source code differences between Linux and ACPICA upstream.

This patch is required by future acpidump release automation.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Lv Zheng and committed by
Rafael J. Wysocki
481c1381 c14ced04

+3 -3
+1 -1
drivers/acpi/acpica/acglobal.h
··· 108 108 /* 109 109 * Optionally enable output from the AML Debug Object. 110 110 */ 111 - bool ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE); 111 + u8 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE); 112 112 113 113 /* 114 114 * Optionally copy the entire DSDT to local memory (instead of simply
+1 -1
drivers/acpi/sysfs.c
··· 226 226 /* /sys/modules/acpi/parameters/aml_debug_output */ 227 227 228 228 module_param_named(aml_debug_output, acpi_gbl_enable_aml_debug_object, 229 - bool, 0644); 229 + byte, 0644); 230 230 MODULE_PARM_DESC(aml_debug_output, 231 231 "To enable/disable the ACPI Debug Object output."); 232 232
+1 -1
include/acpi/acpixf.h
··· 77 77 extern u8 acpi_gbl_disable_auto_repair; 78 78 extern u8 acpi_gbl_disable_ssdt_table_load; 79 79 extern u8 acpi_gbl_do_not_use_xsdt; 80 - extern bool acpi_gbl_enable_aml_debug_object; 80 + extern u8 acpi_gbl_enable_aml_debug_object; 81 81 extern u8 acpi_gbl_enable_interpreter_slack; 82 82 extern u32 acpi_gbl_trace_flags; 83 83 extern acpi_name acpi_gbl_trace_method_name;