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

ACPICA: iASL: Add new warnings for method local_x and arg_x variables

ACPICA commit eb9f8cb9fd65f1149dd335d05944c31cbca41af3

1) Warn if a Local is set but never used
2) Warn if a arg_x is never used (for non-predefined method names)
3) Warn if a arg_x that is used as a local is never used

This patch only affects iASL which is not in the kernel source tree.

Link: https://github.com/acpica/acpica/commit/eb9f8cb9
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Bob Moore and committed by
Rafael J. Wysocki
53d9edce dc67d0fa

+4
+4
drivers/acpi/acpica/aclocal.h
··· 174 174 */ 175 175 #ifdef ACPI_LARGE_NAMESPACE_NODE 176 176 union acpi_parse_object *op; 177 + void *method_locals; 178 + void *method_args; 177 179 u32 value; 178 180 u32 length; 181 + u8 arg_count; 182 + 179 183 #endif 180 184 }; 181 185