From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 386EFA0093; Mon, 15 Jun 2020 03:05:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 363A24C9D; Mon, 15 Jun 2020 03:05:36 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 6B3004C90 for ; Mon, 15 Jun 2020 03:05:35 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id w15so8485979lfe.11 for ; Sun, 14 Jun 2020 18:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FqX0jtsS+Nwyj7JLI/Xnh7KVdRahbJIUVCUusOc54gs=; b=nMsXnhHvc803zkITkPQ6i3VcLWRPZc7qz7EMHlEvaM+bkEzCLkV9wHVv9aCa0AvwHc jssZ39tmkNwkIPKVeI2E2BOyikV/GSvbAs5Nh2M46GHei6bZxDLiolvJ6qeQdAc4rsCv aWOZBaIG9kuNbJiNoBuMciT8l+VXCoWK4Qivw/irLFe0A9y5H28eseGOfB4H3wcCipH2 aaeUHVEbt/Pq3FIP+2dDLVqkcGmqDTKsITEBgpB9y7mEgUq3EpQ8KRGZI2/QzaI3RO7n phOC+UxQdcZSD7sQNIzEiVUmEVX+vaXKm7nvkHbeJmnWdKudStWPOqgxUrGs5U136Wia EIvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FqX0jtsS+Nwyj7JLI/Xnh7KVdRahbJIUVCUusOc54gs=; b=LdVBMYxfdTqxH+oa3DvNMNFgo835UswmRuG1aaD2Nqco0MMJPXkHcDHbhZJhtgNgOo XYJtseYmP/94gFB7uDdrKwcvDntxYJTorxWKTqdx33c9nr+5/Vuq76/ELUzlD07VHeJZ +mHeywBstS9ruxfznDmyuUXCCqKyStfbL8HQrOkheaa/o5nn+ouv3meGfE436slfAzAF 1xERVM407Jf3WBWnKeJ28H/d32dq1cdAaWFRJB6xLTtFpc/vrzc1x0nPXU+GwAftTnPS q41Guv+1ATnb3Vg4ZOLR37/r627vmBy15ztnOpcfgsVEE1CyJ3h7nh6H9kBIVDESBa36 iZ3Q== X-Gm-Message-State: AOAM532Yx4b0pCwvBR0jrf5G/iWBN6oSIzUFcvA/rOy4OjjOryJRv7DP J4juhgqJOOAUI1TNDYDXaLI= X-Google-Smtp-Source: ABdhPJzxL2cIX8y/JPEwJomVtBfWipFanLCDbb9FHXL0noap35pKo1SB8NM+Fc36a1J0zZr82bTSbw== X-Received: by 2002:ac2:59c3:: with SMTP id x3mr12429710lfn.117.1592183134860; Sun, 14 Jun 2020 18:05:34 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id o23sm4975146lfg.0.2020.06.14.18.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 18:05:34 -0700 (PDT) Date: Mon, 15 Jun 2020 04:05:33 +0300 From: Dmitry Kozlyuk To: Thomas Monjalon Cc: dev@dpdk.org, david.marchand@redhat.com, bruce.richardson@intel.com, Harini Ramakrishnan , Omar Cardona , Pallavi Kadam , Ranjit Menon Message-ID: <20200615040533.6c213a5f@sovereign> In-Reply-To: <2071651.hbnvd6Rhsx@thomas> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200614225747.3839569-5-thomas@monjalon.net> <2071651.hbnvd6Rhsx@thomas> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 4/4] devtools: add Windows cross-build test with MinGW 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > It looks to be a false positive, but we need to find a way to remove > the warning with a code change. > > This workaround in lib/librte_eal/common/eal_common_options.c > makes 200% sure the default_set is initialized: > > - if (pthread_getaffinity_np(pthread_self(), sizeof(rte_cpuset_t), > - &default_set)) > - CPU_ZERO(&default_set); > - > + CPU_ZERO(&default_set); > + pthread_getaffinity_np(pthread_self(), > + sizeof default_set, &default_set); > Doesn't look like a false-positive to me. That's where it's been spotted and explained before: https://mails.dpdk.org/archives/dev/2020-May/168634.html And this series eliminates it along with other improvements: http://patchwork.dpdk.org/patch/70727/ -- Dmitry Kozlyuk