From patchwork Fri Mar 14 12:27:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shukla X-Patchwork-Id: 26252 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1617B20143 for ; Fri, 14 Mar 2014 12:27:58 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf8500218iec.10 for ; Fri, 14 Mar 2014 05:27:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=SlUWRrWWtkja5tVXGzm7amz0Cf2Kd1YFyyp9WuzZ28c=; b=H5OdebhFQfteo3FxzAOv9LOjm0VTBePhH4AeB9WdtP7aFSZs6HGYQYfhdoiKjlLADN qqRF+nlNsR3iIJdFnIH+LJg8DvB0QImRffC5WjknsqmvZROezdNucQsX3CE2Y/w0N/yj Bl8BaqahzG6Jp0w2nKAdZMBcnC7xMrgiJGvW1P/Ija3LC0lrqKg30ZYqOXgHm0gnw09G n/SLs6vpt2S7+6UOlrNs9I4x0zP53ESW+CsKzsqnYZybfx6ULRrz0/gyzolfQNoenkBH EOasX8W/uSAsUomjXglyq11AAehgwJcRNh2+PPD/vl3N3s157stP0vKK33uGp7gwNfh5 fcpw== X-Gm-Message-State: ALoCoQk7Q8bGUnownrW2YK8xLKlrpbqEnpbHJv2bYXFh2nK/6F0R0W8cvyF1wPQyd/BtS9JS5vav X-Received: by 10.182.60.37 with SMTP id e5mr3107851obr.30.1394800078438; Fri, 14 Mar 2014 05:27:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.50.153.76 with SMTP id ve12ls1068898igb.31.gmail; Fri, 14 Mar 2014 05:27:58 -0700 (PDT) X-Received: by 10.68.231.35 with SMTP id td3mr8550523pbc.137.1394800078179; Fri, 14 Mar 2014 05:27:58 -0700 (PDT) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id nv9si5582890pbb.5.2014.03.14.05.27.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Mar 2014 05:27:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of santosh.shukla@linaro.org) client-ip=209.85.220.51; Received: by mail-pa0-f51.google.com with SMTP id kq14so2565138pab.24 for ; Fri, 14 Mar 2014 05:27:58 -0700 (PDT) X-Received: by 10.68.197.8 with SMTP id iq8mr8893174pbc.124.1394800078037; Fri, 14 Mar 2014 05:27:58 -0700 (PDT) Received: from santosh-Latitude-E5530-non-vPro.mvista.com ([115.119.134.194]) by mx.google.com with ESMTPSA id ug9sm16274580pbc.11.2014.03.14.05.27.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Mar 2014 05:27:56 -0700 (PDT) From: Santosh Shukla To: lng-odp@linaro.org Cc: santosh shukla Subject: [lng-odp] [ODP/PATCH] Timer build fix Date: Fri, 14 Mar 2014 17:57:41 +0530 Message-Id: <1394800061-25821-1-git-send-email-santosh.shukla@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Original-Sender: santosh.shukla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of santosh.shukla@linaro.org) smtp.mail=santosh.shukla@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: santosh shukla v2 titled patch "Timer-implementation-first-draft.patch" missed out while merging that lead to build break. | source/odp_timer.c: In function 'odp_timer_absolute_tmo': | source/odp_timer.c:253:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | return (odp_timer_tmo_t) new_tmo; this patch is diff of v1 vs v2 patch..Keeping original original author v2 header copied from lng-odp list for reference. commit 9258e038fca5f51c161d2dffc279569ffe99d02a Author: Petri Savolainen Date: Tue Mar 11 16:11:40 2014 +0200 Timer implementation first draft Very simple implementation. Does not implement cancel_tmo. Test included into example app. Signed-off-by: Petri Savolainen Signed-off-by: santosh shukla --- include/odp_timer.h | 2 +- platform/linux-generic/source/odp_timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp_timer.h b/include/odp_timer.h index f051f71..0b6dc51 100644 --- a/include/odp_timer.h +++ b/include/odp_timer.h @@ -35,7 +35,7 @@ typedef uint32_t odp_timer_t; /** * ODP timeout handle */ -typedef uint64_t odp_timer_tmo_t; +typedef odp_buffer_t odp_timer_tmo_t; #define ODP_TIMER_TMO_INVALID 0 diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c index fceb086..4bcc479 100644 --- a/platform/linux-generic/source/odp_timer.c +++ b/platform/linux-generic/source/odp_timer.c @@ -250,7 +250,7 @@ odp_timer_tmo_t odp_timer_absolute_tmo(odp_timer_t timer, uint64_t tmo_tick, add_tmo(&odp_timer.timer[id].tick[tick], new_tmo); - return (odp_timer_tmo_t) new_tmo; + return tmo_buf; }