From patchwork Mon Dec 14 15:26:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 58354 Delivered-To: patch@linaro.org Received: by 10.112.73.68 with SMTP id j4csp1541761lbv; Mon, 14 Dec 2015 07:27:03 -0800 (PST) X-Received: by 10.140.136.134 with SMTP id 128mr35105108qhi.16.1450106823449; Mon, 14 Dec 2015 07:27:03 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x66si35241833qhx.17.2015.12.14.07.27.03; Mon, 14 Dec 2015 07:27:03 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D6FFA61C9B; Mon, 14 Dec 2015 15:27:02 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=R5jcH7cP; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,URIBL_BLOCKED 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 9BAC361953; Mon, 14 Dec 2015 15:26:57 +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 E57E2610B9; Mon, 14 Dec 2015 15:26:52 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by lists.linaro.org (Postfix) with ESMTPS id C0CA1610B9 for ; Mon, 14 Dec 2015 15:26:50 +0000 (UTC) Received: by lbpu9 with SMTP id u9so101581681lbp.2 for ; Mon, 14 Dec 2015 07:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=D/FWkycvOhwkXh+xSzwQgy6OBBCZGWvX/wD7QycdU3o=; b=R5jcH7cPi2fDNOLCBCdR7HjPvxtZlOq0fX+MQSP58R2/QxvySf224iqij+Njk3oRoT BOHuj3EVX5JSYhsDjo3RwLqXuJab8jkQTy/g8BqgEexzpDWKlFdkJk3VAq1krfCCk+1m N4KbxGX99Zg/UKLwDTchHBrpwuNxxLlxmVryU= 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=D/FWkycvOhwkXh+xSzwQgy6OBBCZGWvX/wD7QycdU3o=; b=BeGagxZ4eErLqyXmdRay2nGimlt8HNEw1ZfsWGVoidQBm6m+H9IBjkyWstT7Lwjjht ty0EQoOuZP5phjCBwQaGHfq4Yykho3KJ8AyiiyCBSKDBR0ptrxhf6f3pfCkT31hn43SP yCnf2w3gHZf+AnLIysnnvirdw/OkRN40MOqFvdAhCxCS7A0GeMqlBQIfu6r8n9673dQJ i8K+5SOsZkOhhGE2lP6+OVOXpW244xsEQUV4eBdqi2CCt+fNdjQKvEo7KmsuBgV9zIDZ SbDRxJ/kQMoQQP8+X04AhlybA2c9x3aRCZ5EfT8Dpuu2Q4gvPvSRF7uw8/WOa3xhdOds lvvw== X-Gm-Message-State: ALoCoQn+WZT5Hcm1j+WwHieYmLNaF0ZnEHGSMoDo28OICrtP9zBR5I94LyVSY0LQnWPMruNS26LIdOVPPN/ic5CrhKHBUYYysw== X-Received: by 10.112.199.41 with SMTP id jh9mr10828559lbc.119.1450106809650; Mon, 14 Dec 2015 07:26:49 -0800 (PST) Received: from localhost.localdomain (ppp91-76-173-134.pppoe.mtu-net.ru. [91.76.173.134]) by smtp.gmail.com with ESMTPSA id a190sm5580042lfa.32.2015.12.14.07.26.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Dec 2015 07:26:48 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 14 Dec 2015 18:26:44 +0300 Message-Id: <1450106804-5140-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: Ilya Maximets Subject: [lng-odp] [PATCH] linux-generic: fix tap compilation 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" pktio/tap.c:267:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] } else if (retval != pkt_len) { Cc: Ilya Maximets Signed-off-by: Maxim Uvarov Reviewed-by: Bill Fischofer --- platform/linux-generic/pktio/tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/pktio/tap.c b/platform/linux-generic/pktio/tap.c index 7ecb300..99e15ce 100644 --- a/platform/linux-generic/pktio/tap.c +++ b/platform/linux-generic/pktio/tap.c @@ -264,7 +264,7 @@ static int tap_pktio_send(pktio_entry_t *pktio_entry, odp_packet_t pkts[], return -1; } break; - } else if (retval != pkt_len) { + } else if ((uint32_t)retval != pkt_len) { ODP_ERR("sent partial ethernet packet\n"); if (i == 0) { __odp_errno = EMSGSIZE;