Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752615AbbBAIlN (ORCPT ); Sun, 1 Feb 2015 03:41:13 -0500 Received: from www.osadl.org ([62.245.132.105]:35440 "EHLO www.osadl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752490AbbBAIlL (ORCPT ); Sun, 1 Feb 2015 03:41:11 -0500 From: Nicholas Mc Guire To: "K. Y. Srinivasan" Cc: Haiyang Zhang , devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, Nicholas Mc Guire Subject: [PATCH] hv: hv_balloon: match var type to return type of wait_for_completion Date: Sun, 1 Feb 2015 03:36:53 -0500 Message-Id: <1422779813-27977-1-git-send-email-hofrat@osadl.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1337 Lines: 42 From: Nicholas Mc Guire return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire --- The return type of wait_for_completion_timeout is unsigned long not int. This patch resolves the type missmatch by changing the type to unsigned long. This patch was only compile tested with x86_64_defconfig + CONFIG_X86_VSMP=y, CONFIG_HYPERV=m, CONFIG_HYPERV_BALLOON=m Patch is against 3.19.0-rc6 -next-20150130 drivers/hv/hv_balloon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index ff16938..965c37a 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -1414,7 +1414,8 @@ static void balloon_onchannelcallback(void *context) static int balloon_probe(struct hv_device *dev, const struct hv_vmbus_device_id *dev_id) { - int ret, t; + int ret; + unsigned long t; struct dm_version_request version_req; struct dm_capabilities cap_msg; -- 1.7.10.4 -- 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/