From patchwork Mon Sep 5 19:05:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 75447 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp201416qgf; Mon, 5 Sep 2016 12:06:11 -0700 (PDT) X-Received: by 10.237.55.225 with SMTP id j88mr40743337qtb.131.1473102371249; Mon, 05 Sep 2016 12:06:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m123si18502366qkf.103.2016.09.05.12.06.10; Mon, 05 Sep 2016 12:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5393760D33; Mon, 5 Sep 2016 19:06:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 544D060D37; Mon, 5 Sep 2016 19:06:06 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 399AF60D55; Mon, 5 Sep 2016 19:06:03 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 2619160D19 for ; Mon, 5 Sep 2016 19:05:44 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id h127so28617605lfh.0 for ; Mon, 05 Sep 2016 12:05:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rTUqCzqyEfwGGx3ScxBYqa8b92ijo7WgBDeoNiiXW0E=; b=lzbF5td4KsBuraAs08pUwzoJNMMPVPY6vrNTlfJwMhDQlUl8OXZGAFRkIwv9FIdzmA ioPpQgXmRy+BYPDmfJDURE1SxVZmO8IHBkYtgY8MkUGwSeC10jjoQN1BggcyTpmFe1xn w60pa/klP5WxDYJnqH76o782u68vuVtOg5VKQ7ZyKV1W9hM9K0XIKx3ehgRulTQc/uQ1 6mI37bFZF3EkuALZE8poukaU0pQM1l92NYIAdQEGNCQw+3Z5vw7j7w9dAgpdQUiIDjSD /wsmZolJZZnEHTXHkEftjemuXjMTu+o9Z5ql/nmnsW0WZiaBrHfY0Apr0afNpHE8k50V 0Cog== X-Gm-Message-State: AE9vXwPAQR5OefoZpwSYaDM0GoxxZR2JtEvBzurY8jkt72Rq9/e1Q8C4jNqaRxG6VilT3ar95Jk= X-Received: by 10.46.1.137 with SMTP id f9mr1992241lji.41.1473102342561; Mon, 05 Sep 2016 12:05:42 -0700 (PDT) Received: from localhost.localdomain ([83.220.239.217]) by smtp.gmail.com with ESMTPSA id h14sm1443707ljh.21.2016.09.05.12.05.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Sep 2016 12:05:41 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 5 Sep 2016 22:05:29 +0300 Message-Id: <1473102329-19148-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCH] example: l2fwd: fix clang build X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Maxim Uvarov --- example/l3fwd/odp_l3fwd_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.1.250.gff4ea60 diff --git a/example/l3fwd/odp_l3fwd_db.c b/example/l3fwd/odp_l3fwd_db.c index 4731237..082b2c2 100644 --- a/example/l3fwd/odp_l3fwd_db.c +++ b/example/l3fwd/odp_l3fwd_db.c @@ -209,7 +209,7 @@ static void create_fwd_hash_cache(void) } size = sizeof(flow_bucket_t) * bucket_count; - flows = (flow_entry_t *)((char *)bucket + size); + flows = (flow_entry_t *)(void *)((char *)bucket + size); fwd_lookup_cache.bucket = bucket; fwd_lookup_cache.bkt_cnt = bucket_count;