From patchwork Wed Apr 27 14:49:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 736471 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3REltQh025530 for ; Wed, 27 Apr 2011 14:47:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753008Ab1D0Ory (ORCPT ); Wed, 27 Apr 2011 10:47:54 -0400 Received: from vpn.id2.novell.com ([195.33.99.129]:36752 "EHLO vpn.id2.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208Ab1D0Ory convert rfc822-to-8bit (ORCPT ); Wed, 27 Apr 2011 10:47:54 -0400 Received: from EMEA1-MTA by vpn.id2.novell.com with Novell_GroupWise; Wed, 27 Apr 2011 15:47:52 +0100 Message-Id: <4DB84903020000780003E662@vpn.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 27 Apr 2011 15:49:07 +0100 From: "Jan Beulich" To: "Len Brown" Cc: Subject: [PATCH] acpi: fix parameter type 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 27 Apr 2011 14:47:55 +0000 (UTC) The extra (bogus) level of indirection worked only because acpi_handle itself is a pointer to void. 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 --- 2.6.39-rc5/drivers/acpi/numa.c +++ 2.6.39-rc5-acpi-get-node/drivers/acpi/numa.c @@ -320,7 +320,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; --- 2.6.39-rc5/include/linux/acpi.h +++ 2.6.39-rc5-acpi-get-node/include/linux/acpi.h @@ -223,13 +223,13 @@ extern void 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; }