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

ACPI: fix build warning

CC drivers/acpi/executer/exregion.o
drivers/acpi/executer/exregion.c: In function
‘acpi_ex_pci_config_space_handler’:
drivers/acpi/executer/exregion.c:369: attention : passing argument 3 of
‘acpi_os_read_pci_configuration’ from incompatible pointer type

exposed by 10270d4838bdc493781f5a1cf2e90e9c34c9142f

http://bugzilla.kernel.org/show_bug.cgi?id=9989

Signed-off-by: Ming Lin <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Ming Lin and committed by
Len Brown
1186974f e80af3a8

+3 -2
+3 -2
drivers/acpi/executer/exregion.c
··· 338 338 acpi_status status = AE_OK; 339 339 struct acpi_pci_id *pci_id; 340 340 u16 pci_register; 341 + u32 value32; 341 342 342 343 ACPI_FUNCTION_TRACE(ex_pci_config_space_handler); 343 344 ··· 365 364 switch (function) { 366 365 case ACPI_READ: 367 366 368 - *value = 0; 369 367 status = acpi_os_read_pci_configuration(pci_id, pci_register, 370 - value, bit_width); 368 + &value32, bit_width); 369 + *value = value32; 371 370 break; 372 371 373 372 case ACPI_WRITE: