]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Fix CONFIG_ACPI_DOCK=n compiler warning
authorBart Van Assche <bvanassche@acm.org>
Wed, 2 Nov 2011 19:16:05 +0000 (20:16 +0100)
committerLen Brown <len.brown@intel.com>
Mon, 7 Nov 2011 01:58:17 +0000 (20:58 -0500)
commitfdd3988e7171606cd89ad8a876209f3afa39cfda
treed02708102aae8adb7869d321bd5265e49f86d965
parent7778760f993d064fb437f7653d44a58da21770cf
ACPI: Fix CONFIG_ACPI_DOCK=n compiler warning

Recently the ACPI ops structs were constified but the inline version
of register_hotplug_dock_device() was overlooked (see also commit
41abd10, June 25 2011). Update the inline function
register_hotplug_dock_device() that is enabled with
CONFIG_ACPI_DOCK=n too. This patch fixes at least the following
compiler warnings:

drivers/ata/libata-acpi.c: In function .ata_acpi_associate.:
drivers/ata/libata-acpi.c:266:11: warning: passing argument 2 of .register_hotplug_dock_device. discards qualifiers from pointer target type
include/acpi/acpi_drivers.h:146:19: note: expected .struct acpi_dock_ops *. but argument is of type .const struct acpi_dock_ops *.
drivers/ata/libata-acpi.c:275:11: warning: passing argument 2 of .register_hotplug_dock_device. discards qualifiers from pointer target type
include/acpi/acpi_drivers.h:146:19: note: expected .struct acpi_dock_ops *. but argument is of type .const struct acpi_dock_ops *.

Cc: stable@vger.kernel.org
Signed-off-by: Len Brown <len.brown@intel.com>
include/acpi/acpi_drivers.h