ACPI: fix build warning

2008-02-21 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1186974f3ffe3c1796e5efce7afffefcfda9a6f0
Commit: 1186974f3ffe3c1796e5efce7afffefcfda9a6f0
Parent: e80af3a8dbbbf431b2070cc760699f01c5a6ac69
Author: Ming Lin <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 21 02:01:30 2008 -0500
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Thu Feb 21 02:01:30 2008 -0500

    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 <[EMAIL PROTECTED]>
Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/executer/exregion.c |5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/executer/exregion.c b/drivers/acpi/executer/exregion.c
index 2e9ce94..3f51b7e 100644
--- a/drivers/acpi/executer/exregion.c
+++ b/drivers/acpi/executer/exregion.c
@@ -338,6 +338,7 @@ acpi_ex_pci_config_space_handler(u32 function,
acpi_status status = AE_OK;
struct acpi_pci_id *pci_id;
u16 pci_register;
+   u32 value32;
 
ACPI_FUNCTION_TRACE(ex_pci_config_space_handler);
 
@@ -364,9 +365,9 @@ acpi_ex_pci_config_space_handler(u32 function,
switch (function) {
case ACPI_READ:
 
-   *value = 0;
status = acpi_os_read_pci_configuration(pci_id, pci_register,
-   value, bit_width);
+   &value32, bit_width);
+   *value = value32;
break;
 
case ACPI_WRITE:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


ACPI: fix build warning

2008-02-07 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b7143156c9ceee1a072c57aac8729d2dec5b3bf1
Commit: b7143156c9ceee1a072c57aac8729d2dec5b3bf1
Parent: 9b7131542178f5f948e4bb6bea6e1c545e697b06
Author: Len Brown <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 04:24:01 2008 -0500
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 04:24:01 2008 -0500

    ACPI: fix build warning

drivers/acpi/system.c:360: warning: ignoring return value of 
‘sysfs_create_group’, declared with attribute warn_unused_result

Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/system.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/system.c b/drivers/acpi/system.c
index ce88171..55cf4c0 100644
--- a/drivers/acpi/system.c
+++ b/drivers/acpi/system.c
@@ -357,8 +357,8 @@ void acpi_irq_stats_init(void)
}
 
interrupt_stats_attr_group.attrs = all_attrs;
-   sysfs_create_group(acpi_kobj, &interrupt_stats_attr_group);
-   return;
+   if (!sysfs_create_group(acpi_kobj, &interrupt_stats_attr_group))
+   return;
 
 fail:
delete_gpe_attr_array();
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html