From patchwork Mon Dec 12 16:11:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 87714 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp1728179obb; Mon, 12 Dec 2016 08:12:02 -0800 (PST) X-Received: by 10.31.6.194 with SMTP id 185mr12887159vkg.19.1481559122053; Mon, 12 Dec 2016 08:12:02 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k19si11193155uab.192.2016.12.12.08.12.01; Mon, 12 Dec 2016 08:12:02 -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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5A80D60E07; Mon, 12 Dec 2016 16:12:01 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 B707760DC0; Mon, 12 Dec 2016 16:11:52 +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 ED6B060DC5; Mon, 12 Dec 2016 16:11:50 +0000 (UTC) Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by lists.linaro.org (Postfix) with ESMTPS id 76E7760DAB for ; Mon, 12 Dec 2016 16:11:45 +0000 (UTC) Received: by mail-qt0-f171.google.com with SMTP id c47so80152961qtc.2 for ; Mon, 12 Dec 2016 08:11:45 -0800 (PST) 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=xNr1lqkOQxk7OneYfqk3MDbfsWOMRhMA9bgO1Kueegs=; b=Nqfa6U8/88rtzDlOVHD8iLsaE/RjgV+HEY+6qpaJcnI/4M6xjbKekdm7u3rm6tRsG6 1OCHmsIXeJtK3SZFhhyfxqDGU7WvybjgzC9xQYzmqVRQ1fIfFEbZVmmfzCaJ4ZOHAVzO 1Ro2RXHyEw6gEcQlCw2ist/UatwcXhr+PKVj6rL1ijLfU/NSny2y5MqDbcOLCbbAgL6S 5NI3VU7XqUGb/c7xYbocgzqWMjh0qgJQaTVZymNm9s9AwA786oBt4XA2I2GJtRnmmwNI 2UAvF0m5vYFpFyCXORiLRcegZDyKy8WRjM68SpXkBA0++P1DPMbZ5ly7SOudDsv8MOvZ Ni8g== X-Gm-Message-State: AKaTC03xUFD9PoDIeFfQ8bsRngb6vCLcc7oJNSNYiSQIrKzyXaKDsBOR+fBnCkfwzEEkqYOjr/Q= X-Received: by 10.237.37.77 with SMTP id w13mr91122756qtc.197.1481559105146; Mon, 12 Dec 2016 08:11:45 -0800 (PST) Received: from localhost (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id d15sm26730816qkb.10.2016.12.12.08.11.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Dec 2016 08:11:44 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 12 Dec 2016 11:11:42 -0500 Message-Id: <20161212161142.13998-1-mike.holmes@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [lng-odp] [PATCH] linux-gen: explicitly ignore return values 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: Mike Holmes --- platform/linux-generic/odp_pool.c | 4 ++-- platform/linux-generic/pktio/socket_mmap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.9.3 diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 415c9fa..858bdd8 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -433,8 +433,8 @@ odp_pool_t _pool_create(const char *name, pool->s.blk_freelist = NULL; /* Initialization will increment these to their target vals */ - odp_atomic_store_u32(&pool->s.bufcount, 0); - odp_atomic_store_u32(&pool->s.blkcount, 0); + (void)odp_atomic_store_u32(&pool->s.bufcount, 0); + (void)odp_atomic_store_u32(&pool->s.blkcount, 0); uint8_t *buf = udata_base_addr - buf_stride; uint8_t *udat = udata_stride == 0 ? NULL : diff --git a/platform/linux-generic/pktio/socket_mmap.c b/platform/linux-generic/pktio/socket_mmap.c index 9655668..f0f893e 100644 --- a/platform/linux-generic/pktio/socket_mmap.c +++ b/platform/linux-generic/pktio/socket_mmap.c @@ -458,7 +458,7 @@ static int mmap_sock(pkt_sock_mmap_t *pkt_sock) static void mmap_unmap_sock(pkt_sock_mmap_t *pkt_sock) { - munmap(pkt_sock->mmap_base, pkt_sock->mmap_len); + (void)munmap(pkt_sock->mmap_base, pkt_sock->mmap_len); free(pkt_sock->rx_ring.rd); free(pkt_sock->tx_ring.rd); }