From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id CE3E098 for ; Fri, 20 Jul 2018 11:30:04 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3600A21CEF; Fri, 20 Jul 2018 05:30:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 20 Jul 2018 05:30:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=vl46P2yfuaMVA0BIDHbfo3okHc J1mDk14Yu8NUX/89E=; b=FGKH4G4/VqN+twZoM8KeaE6IFL8VEJ2DfJeO/lCXfu tMOk2ZeuCxuU5BxDYb0B4uiTeb3xU6693+we3rr2f0JgFUI77J8UqqHJQzKEe2r8 bc4WkwR/ZPrGbA8Zrq4D1q7UQlveYqqAjkkg7hG/nFNKWx+XiGWBY9YH2WTf44bh 8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=vl46P2 yfuaMVA0BIDHbfo3okHcJ1mDk14Yu8NUX/89E=; b=UCPU8+Dzkd7r2W5E+DWVSu lRuokle+psEBOYvbZ+uyllaY787nEf8CPKkH5lv14WM+hfPSKpbOeGNpqoqakwbr J3Ly5NvMHLKIZTSY3WnYAh+gIZ4QYnf6QnDg1I0t+AsiCeXZy/H3vhXZbpMX2M9t Qbxcwwknmv2zxkRsYpcA9flcjKGgMQvMrl+PQcva6ynM6YXtc6sBm1LqS5xIQ8Zs yLvTNo0ZiuEGQz2xIKTkQMfNzpxB37WttlSm2f+ltsJibKmldMB7EAA2Lp9ZiZPA HIMUyOWaSPJIc2R02KJsv325J8OBOpeyexFLIYCHRC//+8+LRIdbwpTUu85XHDRQ == X-ME-Proxy: X-ME-Sender: Received: from xps.localnet (unknown [207.232.18.42]) by mail.messagingengine.com (Postfix) with ESMTPA id 74623E4040; Fri, 20 Jul 2018 05:30:02 -0400 (EDT) From: Thomas Monjalon To: Anatoly Burakov Cc: dev@dpdk.org Date: Fri, 20 Jul 2018 11:30:00 +0200 Message-ID: <2541590.gd5fToPQqf@xps> In-Reply-To: <8308ba8ca44234ec58b36c422ff3bb85117ecd08.1531841506.git.anatoly.burakov@intel.com> References: <8308ba8ca44234ec58b36c422ff3bb85117ecd08.1531841506.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mem: fix static analysis warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 09:30:05 -0000 17/07/2018 17:41, Anatoly Burakov: > Technically, single file segments codepath will never get > triggered when using in-memory mode, because EAL prohibits > mixing these two options at initialization time. However, > code analyzers do not know that, and some will complain > about either using uninitialized variables, or trying to > do operations on an already closed descriptor. > > Fix this by assuring the compiler or code analyzer that > in-memory mode code never gets triggered when using > single-file segments mode. > > Coverity ID: 302847 > Fixes: 72b49ff623c4 ("mem: support --in-memory mode") > > Signed-off-by: Anatoly Burakov Applied, thanks