Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760167AbZIPVks (ORCPT ); Wed, 16 Sep 2009 17:40:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760155AbZIPVkm (ORCPT ); Wed, 16 Sep 2009 17:40:42 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:65443 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760071AbZIPVki (ORCPT ); Wed, 16 Sep 2009 17:40:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; b=eWyCrun4suIeoEAlgqk7vZgO4VwBfNm7vigF4fCtK1Qif7l1dTHVB7CCj3KxPqLtXK UidoLikBQWBYKtrA7KSWd2Era4HjHy3sCueVSouCbra18yYaG8td2XTXNjHVolpqtCcs okS6NsSwCeQPHHwpm8tGOtwpnF5Rv9YGmYoCc= From: Felipe Contreras To: linux-kernel@vger.kernel.org Cc: Felipe Contreras , Len Brown , Len Brown , Lin Ming , Bob Moore , linux-acpi@vger.kernel.org Subject: [PATCH v2 6/6] acpi: fix trivial warnings caused by previous commmit Date: Thu, 17 Sep 2009 00:38:43 +0300 Message-Id: <1253137123-18047-7-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.6.5.rc1 In-Reply-To: <1253137123-18047-6-git-send-email-felipe.contreras@gmail.com> References: <1253137123-18047-1-git-send-email-felipe.contreras@gmail.com> <1253137123-18047-2-git-send-email-felipe.contreras@gmail.com> <1253137123-18047-3-git-send-email-felipe.contreras@gmail.com> <1253137123-18047-4-git-send-email-felipe.contreras@gmail.com> <1253137123-18047-5-git-send-email-felipe.contreras@gmail.com> <1253137123-18047-6-git-send-email-felipe.contreras@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3395 Lines: 68 drivers/acpi/acpica/exfldio.c: In function ‘acpi_ex_extract_from_field’: drivers/acpi/acpica/exfldio.c:761: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:761: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:761: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:780: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:780: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:780: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c: In function ‘acpi_ex_insert_into_field’: drivers/acpi/acpica/exfldio.c:880: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:880: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:880: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:933: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:933: warning: comparison of distinct pointer types lacks a cast drivers/acpi/acpica/exfldio.c:933: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Felipe Contreras --- drivers/acpi/acpica/exfldio.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/acpica/exfldio.c b/drivers/acpi/acpica/exfldio.c index 6687be1..4affc5f 100644 --- a/drivers/acpi/acpica/exfldio.c +++ b/drivers/acpi/acpica/exfldio.c @@ -760,7 +760,7 @@ acpi_ex_extract_from_field(union acpi_operand_object *obj_desc, ACPI_MEMCPY(((char *)buffer) + buffer_offset, &merged_datum, ACPI_MIN(obj_desc->common_field.access_byte_width, - buffer_length - buffer_offset)); + (u8)(buffer_length - buffer_offset))); buffer_offset += obj_desc->common_field.access_byte_width; merged_datum = @@ -779,7 +779,7 @@ acpi_ex_extract_from_field(union acpi_operand_object *obj_desc, ACPI_MEMCPY(((char *)buffer) + buffer_offset, &merged_datum, ACPI_MIN(obj_desc->common_field.access_byte_width, - buffer_length - buffer_offset)); + (u8)(buffer_length - buffer_offset))); return_ACPI_STATUS(AE_OK); } @@ -879,7 +879,7 @@ acpi_ex_insert_into_field(union acpi_operand_object *obj_desc, ACPI_MEMCPY(&raw_datum, buffer, ACPI_MIN(obj_desc->common_field.access_byte_width, - buffer_length - buffer_offset)); + (u8)(buffer_length - buffer_offset))); merged_datum = raw_datum << obj_desc->common_field.start_field_bit_offset; @@ -932,7 +932,7 @@ acpi_ex_insert_into_field(union acpi_operand_object *obj_desc, buffer_offset += obj_desc->common_field.access_byte_width; ACPI_MEMCPY(&raw_datum, ((char *)buffer) + buffer_offset, ACPI_MIN(obj_desc->common_field.access_byte_width, - buffer_length - buffer_offset)); + (u8)(buffer_length - buffer_offset))); merged_datum |= raw_datum << obj_desc->common_field.start_field_bit_offset; } -- 1.6.5.rc1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/