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 F12CC4284B; Mon, 27 Mar 2023 16:30:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38BB842B7E; Mon, 27 Mar 2023 16:30:26 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id EF3AB40EE1 for ; Mon, 27 Mar 2023 16:30:22 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 3F5D720FD8B5; Mon, 27 Mar 2023 07:30:22 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3F5D720FD8B5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1679927422; bh=I8n4OupilQ6hE6Buwwh+ssS19VVbbiHCzBCAu/NXQh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L9Nrq3jytfLVcfCC5wPvPIF2Iy9OitOLHDFzLobWKpsD6OmMzRJMtNNXtRFd19VMI pN/tZU2NJa/8lmk68F4LhokMlVHLAqe4GBDoBKvv8saWjjHg8bNQ0iunY4PuhzhCNX Crmgnr3uuLdcNSoNFuVjz7Vih478wrb0qWm7YNE4= From: Tyler Retzlaff To: dev@dpdk.org Cc: Honnappa.Nagarahalli@arm.com, Ruifeng.Wang@arm.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH 1/3] bus/vmbus: use C11 memory model GCC builtin atomics Date: Mon, 27 Mar 2023 07:30:18 -0700 Message-Id: <1679927420-26737-2-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1679927420-26737-1-git-send-email-roretzla@linux.microsoft.com> References: <1679927420-26737-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 Replace use of __sync_or_and_fetch with __atomic_fetch_or. Signed-off-by: Tyler Retzlaff --- drivers/bus/vmbus/vmbus_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/vmbus_channel.c b/drivers/bus/vmbus/vmbus_channel.c index 5549fd0..4d74df3 100644 --- a/drivers/bus/vmbus/vmbus_channel.c +++ b/drivers/bus/vmbus/vmbus_channel.c @@ -22,7 +22,7 @@ vmbus_sync_set_bit(volatile uint32_t *addr, uint32_t mask) { /* Use GCC builtin which atomic does atomic OR operation */ - __sync_or_and_fetch(addr, mask); + __atomic_fetch_or(addr, mask, __ATOMIC_SEQ_CST); } static inline void -- 1.8.3.1