From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5810244099; Wed, 22 May 2024 18:33:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12F074025C; Wed, 22 May 2024 18:33:50 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 08226400D6 for ; Wed, 22 May 2024 18:33:47 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 5687C20B915A; Wed, 22 May 2024 09:33:47 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5687C20B915A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1716395627; bh=rGO6DiukDHWysVY8ojA7ebUyiLsv2wwcgF8InTdIq4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BqzTaGo7tEhFIJ8OYq24FMySOYd8T3pwC6va6DXGuRkYKTWI29mKwMHj2qrAd/TS2 eQwDtV2G7HwpaznXHkFDg1HImonoaexoZnnfaxP0LNPT+TdGwoEGRYWjaBcs7t30+W eG2JFD3vKQmDAXMB9+Hu3irJXyN4tZHuHVZLnIAY= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Sameh Gobriel , Vladimir Medvedkin , Yipeng Wang , Tyler Retzlaff Subject: [PATCH v2] hash: cast away atomic qualification Date: Wed, 22 May 2024 09:33:44 -0700 Message-Id: <1716395625-7045-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1713283609-32101-1-git-send-email-roretzla@linux.microsoft.com> References: <1713283609-32101-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org rte_free accepts only non-cva qualified arguments so cast away RTE_ATOMIC qualification for tbl_chng_cnt and h->tbl_chng_cnt when calling rte_free. Without this change using enable_stdatomic=true with LLVM or MSVC will result in a warning being emitted for discarding the atomic qualification. v2: * update commit message to indicate the conditions under which a warning will be issued without this patch. Tyler Retzlaff (1): hash: cast away atomic qualification lib/hash/rte_cuckoo_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.8.3.1