From patchwork Sun Mar 1 22:22:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 9468 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n21MMRG5008841 for ; Sun, 1 Mar 2009 22:22:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752956AbZCAWW1 (ORCPT ); Sun, 1 Mar 2009 17:22:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755255AbZCAWW1 (ORCPT ); Sun, 1 Mar 2009 17:22:27 -0500 Received: from mail-ew0-f177.google.com ([209.85.219.177]:52562 "EHLO mail-ew0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752956AbZCAWW1 (ORCPT ); Sun, 1 Mar 2009 17:22:27 -0500 Received: by ewy25 with SMTP id 25so1881467ewy.37 for ; Sun, 01 Mar 2009 14:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=DjmM+V1EKgzXCZME8oIH7ya0uwB5x6IuZrywZH/d+kc=; b=uz7iSPEqH4XXsNQ2TAv67g24ZRlirrpcgcG6bDyP8iNIVPzb25dMLpx6iYgTaVlJqj jOkonEt0eDCT6Pywcrh3B6TZdYTvVpQr9B3AONgDsDZPGKGrv4UwKawN1gJ3WQSYj2UL 76v2IkhPB6hqV4f+1QrGVQgJaRPI8OTCp80fU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=KR5e+1g2DvgmwqZiRrSVuy/o9xPUIwKQ04sv9GMnlhiRkVGi+uI1ukGRTM0hvcy4b+ 00gbBG2o3DB4P+XLqJsRFK8YBgKhsQBqKHoX/TY3Nd8Ed06XYt9FZnnaHwOjgAGSMlvE gT8FobsIhC0Ab7oLhAtghMOtzToSSW9Ea4EUs= Received: by 10.210.92.11 with SMTP id p11mr4183014ebb.2.1235946144320; Sun, 01 Mar 2009 14:22:24 -0800 (PST) Received: from ?192.168.1.115? (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 7sm4239447eyg.37.2009.03.01.14.22.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Mar 2009 14:22:23 -0800 (PST) Message-ID: <49AB0AA1.1090207@gmail.com> Date: Sun, 01 Mar 2009 23:22:25 +0100 From: Roel Kluin User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: carlos@strangeworlds.co.uk CC: linux-acpi@vger.kernel.org, Andrew Morton Subject: [PATCH] ACPI: unsigned cannot be less than 0. Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org include/linux/pci-acpi.h:74: typedef u32 acpi_status; ------------------------------>8-------------8<--------------------------------- result is unsigned, so an error returned by acpi_bus_register_driver() will not be noticed. Signed-off-by: Roel Kluin --- -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 8a8b377..2f269e1 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acpi_device *device) static int __init acpi_wmi_init(void) { - acpi_status result; + int result; INIT_LIST_HEAD(&wmi_blocks.list);