]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / tables: Add an ifdef around amlcode and dsdt_amlcode
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 20 Dec 2018 19:38:56 +0000 (12:38 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Dec 2018 20:37:28 +0000 (21:37 +0100)
commit1e265bedaa1779cb842c7e57c84b2bb6e528ac34
tree8eff0fa90a96640939d37951eae21804d43daa28
parent6b7a7777d6cde7d8f2ad33f02437eeb803da4d36
ACPI / tables: Add an ifdef around amlcode and dsdt_amlcode

Clang warns:

drivers/acpi/tables.c:715:14: warning: unused variable 'amlcode'
[-Wunused-variable]
static void *amlcode __attribute__ ((weakref("AmlCode")));
             ^
drivers/acpi/tables.c:716:14: warning: unused variable 'dsdt_amlcode'
[-Wunused-variable]
static void *dsdt_amlcode __attribute__ ((weakref("dsdt_aml_code")));
             ^
2 warnings generated.

The only uses of these variables are hiddem behind CONFIG_ACPI_CUSTOM_DSDT
so do the same thing here.

Fixes: 6b7a7777d6cd (ACPI / tables: add DSDT AmlCode new declaration name support)
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/tables.c