From patchwork Tue Jun 30 11:24:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 33101 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 n5UBih5K027418 for ; Tue, 30 Jun 2009 11:44:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750990AbZF3Loi (ORCPT ); Tue, 30 Jun 2009 07:44:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751508AbZF3Loi (ORCPT ); Tue, 30 Jun 2009 07:44:38 -0400 Received: from vpn.id2.novell.com ([195.33.99.129]:45832 "EHLO vpn.id2.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbZF3Loh convert rfc822-to-8bit (ORCPT ); Tue, 30 Jun 2009 07:44:37 -0400 X-Greylist: delayed 1205 seconds by postgrey-1.27 at vger.kernel.org; Tue, 30 Jun 2009 07:44:37 EDT Received: from EMEA1-MTA by vpn.id2.novell.com with Novell_GroupWise; Tue, 30 Jun 2009 12:24:35 +0100 Message-Id: <4A4A1213020000780000832D@vpn.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.0 Date: Tue, 30 Jun 2009 12:24:35 +0100 From: "Jan Beulich" To: Cc: Subject: [PATCH] acpi: fix parameter declaration of acpi_get_node() Mime-Version: 1.0 Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The function expects an acpi_handle, not a pointer to one. Signed-off-by: Jan Beulich --- drivers/acpi/numa.c | 2 +- include/linux/acpi.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 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 --- linux-2.6.31-rc1/drivers/acpi/numa.c 2009-06-10 05:05:27.000000000 +0200 +++ 2.6.31-rc1-acpi-get-node/drivers/acpi/numa.c 2009-05-04 11:39:30.000000000 +0200 @@ -316,7 +316,7 @@ int acpi_get_pxm(acpi_handle h) return -1; } -int acpi_get_node(acpi_handle *handle) +int acpi_get_node(acpi_handle handle) { int pxm, node = -1; --- linux-2.6.31-rc1/include/linux/acpi.h 2009-06-26 17:49:59.000000000 +0200 +++ 2.6.31-rc1-acpi-get-node/include/linux/acpi.h 2009-05-04 11:39:30.000000000 +0200 @@ -226,13 +226,13 @@ extern int acpi_osi_setup(char *str); #ifdef CONFIG_ACPI_NUMA int acpi_get_pxm(acpi_handle handle); -int acpi_get_node(acpi_handle *handle); +int acpi_get_node(acpi_handle handle); #else static inline int acpi_get_pxm(acpi_handle handle) { return 0; } -static inline int acpi_get_node(acpi_handle *handle) +static inline int acpi_get_node(acpi_handle handle) { return 0; }