Bug 9989

Summary: exregion.c compilation warning on 2.6.25-rc1-git3
Product: ACPI Reporter: BedOS_Gui (rufus-azrael)
Component: OtherAssignee: Lin Ming (ming.m.lin)
Status: CLOSED CODE_FIX    
Severity: high CC: acpi-bugzilla, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.25-rc1-git3 Subsystem:
Regression: --- Bisected commit-id:
Attachments: .config
proposed patch

Description BedOS_Gui 2008-02-14 01:45:15 UTC
Latest working kernel version: 2.6.25-rc1-git2
Earliest failing kernel version:
Distribution: gentoo ~amd64
Hardware Environment: amd64 X2
Software Environment: gcc-4.2.2
Problem Description:
When building above kernel this compilation warning occurs for drivers/acpi/executer

  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

Steps to reproduce:
Comment 1 BedOS_Gui 2008-02-14 01:45:53 UTC
Created attachment 14835 [details]
.config
Comment 2 Lin Ming 2008-02-17 19:29:38 UTC
Created attachment 14878 [details]
proposed patch

avoid the warning just as acpi_ex_system_io_space_handler does
Comment 3 BedOS_Gui 2008-02-18 00:15:10 UTC
The patch is working for me thks Ming Lin.
Comment 4 Len Brown 2008-02-22 22:01:44 UTC
patch in comment #2 shipped in Linux-2.6.25-rc2-git6,
closed.