From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Starikovskiy Subject: Re: [Git Patch] ACPI: Fix a warning of discarding qualifiers from pointer target type Date: Tue, 21 Aug 2007 19:14:49 +0400 Message-ID: <46CB0169.7090207@suse.de> References: <20070821132038.GA22254@ff.dom.local> <20070821150714.GA7591@hacking> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from charybdis-ext.suse.de ([195.135.221.2]:36906 "EHLO emea5-mh.id5.novell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760706AbXHUPPM (ORCPT ); Tue, 21 Aug 2007 11:15:12 -0400 In-Reply-To: <20070821150714.GA7591@hacking> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: WANG Cong Cc: Jarek Poplawski , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, len.brown@intel.com, Andrew Morton WANG Cong wrote: > Fix this warning: > > drivers/acpi/ec.c: In function `acpi_ec_ecdt_probe': > drivers/acpi/ec.c:873: warning: passing arg 1 of `acpi_get_devices' discards qualifiers from pointer target type > > (I don't know whether this fix hits the real problem.) > It is safe to give acpi_get_devices() const string, as it should not modify it in any condition. > Signed-off-by: WANG Cong > > ACK Thanks, Alex > --- > drivers/acpi/ec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > Index: linux-2.6.23-rc3-git3/drivers/acpi/ec.c > =================================================================== > --- linux-2.6.23-rc3-git3.orig/drivers/acpi/ec.c > +++ linux-2.6.23-rc3-git3/drivers/acpi/ec.c > @@ -869,8 +869,8 @@ int __init acpi_ec_ecdt_probe(void) > boot_ec->handle = ACPI_ROOT_OBJECT; > } else { > printk(KERN_DEBUG PREFIX "Look up EC in DSDT\n"); > - status = acpi_get_devices(ec_device_ids[0].id, ec_parse_device, > - boot_ec, NULL); > + status = acpi_get_devices((char *)ec_device_ids[0].id, > + ec_parse_device, boot_ec, NULL); > if (ACPI_FAILURE(status)) > goto error; > } >