From patchwork Tue Apr 8 06:43:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Santosh Shukla X-Patchwork-Id: 27926 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1D92F20490 for ; Tue, 8 Apr 2014 06:43:55 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf2359802ieb.1 for ; Mon, 07 Apr 2014 23:43:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=DYulyXkAGLSlzWSOAeHIdZmm5GYc2kIPnspJVB3hOZ4=; b=ZOSlDN1oADsHDG3eeoCcmx4Marrlp3dQJrIEpFimHjLzBGret3/FbYvYncHZSsJ086 PKtvfyLiYQtAWsLE4BfaIvPqYGMm0OoT0NU1yJDZoNtgny0MUUhKcLtrTYvXns/0dE4C ZQjEXz0V4ib3BW5U1eAMD7+eyozXOtkY0sHCxtzqYaSdRnI6ULvACHVyQrIzT10WPf7s OXzT0Ik3x9ga72AeFZTpYPY78h/SuL8vE0Gwf8COBz0i22saFpW7r9oQwtijIYUBzwfN B1vwI+qzdEZ4XUL6zetw7GAbB7cjH1m2KFI/adZqxXPJwT7ayIyPsDtJoIlQizA2Pt+1 Othg== X-Gm-Message-State: ALoCoQk24RepitryF9FGzxNgq8LDERDYyltVgYITP9tXpafFGnElm6Y8r78+ZFTpi61C1PxGqbFf X-Received: by 10.50.136.198 with SMTP id qc6mr12548677igb.4.1396939435392; Mon, 07 Apr 2014 23:43:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.33 with SMTP id c30ls119545qge.9.gmail; Mon, 07 Apr 2014 23:43:55 -0700 (PDT) X-Received: by 10.58.74.38 with SMTP id q6mr1582587vev.7.1396939435246; Mon, 07 Apr 2014 23:43:55 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id tv3si229052vdc.72.2014.04.07.23.43.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 23:43:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so403784vcb.11 for ; Mon, 07 Apr 2014 23:43:54 -0700 (PDT) X-Received: by 10.58.107.65 with SMTP id ha1mr1663082veb.1.1396939434921; Mon, 07 Apr 2014 23:43:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp221114vcv; Mon, 7 Apr 2014 23:43:54 -0700 (PDT) X-Received: by 10.140.41.80 with SMTP id y74mr2023189qgy.104.1396939434582; Mon, 07 Apr 2014 23:43:54 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id j30si439575qge.108.2014.04.07.23.43.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 07 Apr 2014 23:43:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WXPir-0001Gf-Lh; Tue, 08 Apr 2014 06:41:29 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WXPil-0001GX-9H for lng-odp@lists.linaro.org; Tue, 08 Apr 2014 06:41:23 +0000 Received: by mail-pd0-f182.google.com with SMTP id y10so584495pdj.13 for ; Mon, 07 Apr 2014 23:43:41 -0700 (PDT) X-Received: by 10.68.233.99 with SMTP id tv3mr2202132pbc.163.1396939421119; Mon, 07 Apr 2014 23:43:41 -0700 (PDT) Received: from santosh-Latitude-E5530-non-vPro.mvista.com ([111.93.218.67]) by mx.google.com with ESMTPSA id vg1sm2282181pbc.44.2014.04.07.23.43.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 23:43:39 -0700 (PDT) From: Santosh Shukla To: lng-odp@lists.linaro.org Date: Tue, 8 Apr 2014 12:13:28 +0530 Message-Id: <1396939408-10420-1-git-send-email-santosh.shukla@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [lng-odp] [ODP/PATCH] Timer: build fix for arm X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: santosh.shukla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 source/odp_timer.c: In function ‘odp_timer_cancel_tmo’:wq! source/odp_timer.c:136:3: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘uint64_t’ [-Werror=format=] ODP_ERR("cancel failed for tim id %d tmo id :%d tick idx %lu\n", id, tmo, tick_idx); odp_timer_ping.c: In function ‘ping_init’: odp_timer_ping.c:257:31: error: cast increases required alignment of target type [-Werror=cast-align] dst_addr.sin_addr.s_addr = *(long *)hname->h_addr; Signed-off-by: santosh shukla --- platform/linux-generic/source/odp_timer.c | 2 +- test/api_test/odp_timer_ping.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c index 075de29..875244d 100644 --- a/platform/linux-generic/source/odp_timer.c +++ b/platform/linux-generic/source/odp_timer.c @@ -133,7 +133,7 @@ int odp_timer_cancel_tmo(odp_timer_t timer, odp_timer_tmo_t tmo) odp_spinlock_lock(&tick->lock); /* search and delete tmo from tick list */ if (find_and_del_tmo(&tick->list, tmo) == 0) { - ODP_ERR("cancel failed for tim id %d tmo id :%d tick idx %lu\n", id, tmo, tick_idx); + ODP_ERR("cancel failed for tim id %d tmo id :%d tick idx %"PRIu64"\n", id, tmo, tick_idx); odp_spinlock_unlock(&tick->lock); return -1; } diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c index 6c84a56..8b297d8 100644 --- a/test/api_test/odp_timer_ping.c +++ b/test/api_test/odp_timer_ping.c @@ -254,7 +254,7 @@ static int ping_init(int count, char *name[]) bzero(&dst_addr, sizeof(dst_addr)); dst_addr.sin_family = hname->h_addrtype; dst_addr.sin_port = 0; - dst_addr.sin_addr.s_addr = *(long *)hname->h_addr; + dst_addr.sin_addr.s_addr = *(long *)(void *)hname->h_addr; } printf("ping to addr %s\n", name[1]);