From patchwork Tue Jan 24 18:01:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 646055 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp341972pvb; Tue, 24 Jan 2023 10:09:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXvBC9jc371uZV6eYJYRrQIVfgQlYojOjL67a9FA9bD5DXyPsGkUm10g9WpYxeFULykD4ZtB X-Received: by 2002:ac8:44b7:0:b0:3b6:3b18:50e6 with SMTP id a23-20020ac844b7000000b003b63b1850e6mr38760590qto.65.1674583746837; Tue, 24 Jan 2023 10:09:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674583746; cv=none; d=google.com; s=arc-20160816; b=anUQ1rcswo2AwTnvQj4HnJN8BaR5mtoDcSYJkqrLQK+50M+nizFpH6HlaTwPfy5Lmf TFSfsQbGKPQy7OiQSRMLy/3o+7Uw5opYFupr4KazcHJ5LEf1tasXt09HOi/HvfL3kK2W GZomVEbsntp4xUUzy79Jf/HQqfqW7mviZTb6QlLfxO8cGb+039QEN+2WVseJkPc0pkuP LpI4u70IbC+1b9fPPYdmcE+iWB484T41sfy5f+C/vLucNc2Sp9zGQwGQFxzKw6IqWH3s 6zSYbWpAvLOUNuMOTBsQ3az2jJeuFarSTIlGwn3HbIuDLBrTigY53Oz3B5yILGxEhWTP Gr/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bExNgk2WJNjDRp3xoZMk58dADWZKU+V7kvdfnjGvP68=; b=Iak1LjWuwy61eIZjh+kIjeIQw9WUJ9cwbgENTn+mzeP2usE/+O8/CY/uN1hmpe+8gY c+Asyxy2RJi/uYujY+jAr7SJ33NI3s913mRNdUfU5AeDwuTLssKv5L3Ve6coAxpTaozY Ca4DpNgMBudjmCyOqMAoGNbpMO8jqbXZRldBF4d22j+n98yLhbPIvg6bktr1s6QbqwsA Xa9BUGFzGCXTC+Zmp8yuhJNoHCAaN7WdiUst48xXs+DyO+H31traZKR9RiSC57NLgtEG vu7xnExebzEEvDUPoTA2RzwVDQ7PLCOrvdtVM8sXOoLwa5W6564pf+odhFAdEJdswxlF 9GAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2O7PX+U; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f25-20020ac84999000000b003a824014810si1841452qtq.112.2023.01.24.10.09.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Jan 2023 10:09:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2O7PX+U; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKNhg-0005nk-Q9; Tue, 24 Jan 2023 13:07:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKNhM-00058A-FZ for qemu-devel@nongnu.org; Tue, 24 Jan 2023 13:07:12 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKNhH-00074i-0x for qemu-devel@nongnu.org; Tue, 24 Jan 2023 13:07:08 -0500 Received: by mail-wm1-x32f.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso11575050wmq.5 for ; Tue, 24 Jan 2023 10:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bExNgk2WJNjDRp3xoZMk58dADWZKU+V7kvdfnjGvP68=; b=P2O7PX+ULmRqQwdnktWNNj36ROnyPXTepdc8XIHr37Wx3Ct4mVLE+Kg5W6heZ4hLGg yrnckoOb4/aiUTTF+jl8gqtsUuZ/xjkMN6DV7N1fdjAMO2HT2t2SqPanduyWbBfhtNH6 sdkbnJzNWgm01+RoiLGvxNoulC+2JUyJqkwPRb3VXrDLZS4dz1MqHqsg6uYQ5TZjea2K bNcazW/0rn1n+cmW6VJYFvKJqj5j2CpseYZKn9Gp45zhWIl8tarUP2C7QE4yYwQ554Va 7/hz7Po2d/Yali0t4tk5DK5N2s/gjusGWlj9S2EmBD8E1Hpc4j1y8tba94gIjkMn8H8l d8mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bExNgk2WJNjDRp3xoZMk58dADWZKU+V7kvdfnjGvP68=; b=STjUEe+RHOFfZxk1KVqMvBaprN9jbcilCgmc1Pe2UabI7vrt9/xEKOeL0Khkq/pVNy rGTFRum56Q4r8+sI01xvB4B009PC039+zuQ8b1sEk/jGRAh0PhCrHHbVEfHIJOionKuS NQGXUb/oZ3hXirVN75F1aiQDtw4nzvRbDzNxgZXYZrWZO7xHQRVbrBeYKRbyMod/dppV SNz28beKJ3NKmgfnssj1W8bNynLhCPbsnEWrjhV4Fsu2NFp4bwemrWKQUHBejyMky1pg nDX10rcFfVSL4XrePvlv+idZYOYwl7c4EdOftDZaDk2c9UsoKpMAUErdjPB2Bf4ro81d Ehyg== X-Gm-Message-State: AFqh2kpZMxi3p99wYcfZjJkXfotICSy7NNn+6d9+3deSbve435wHK4pA ThX4iFI5Lkvmnyi3qkXuvMi/9g== X-Received: by 2002:a05:600c:3b07:b0:3d1:cdf7:debf with SMTP id m7-20020a05600c3b0700b003d1cdf7debfmr27626295wms.26.1674583620578; Tue, 24 Jan 2023 10:07:00 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id l36-20020a05600c08a400b003da28dfdedcsm3115927wmp.5.2023.01.24.10.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 10:06:58 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 08B791FFBE; Tue, 24 Jan 2023 18:01:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Ed Maste , Thomas Huth , Alexandre Iooss , Markus Armbruster , Jagannathan Raman , John G Johnson , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Bandan Das , Elena Ufimtseva , Michael Roth , Eduardo Habkost , Beraldo Leal , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , Qiuhao Li , Stefan Hajnoczi , Alexander Bulekov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , John Snow , Paolo Bonzini , Darren Kenny , qemu-arm@nongnu.org, Yanan Wang , Cleber Rosa , Wainer dos Santos Moschetta , Marcel Apfelbaum , Li-Wen Hsu , Peter Maydell , Emilio Cota Subject: [PATCH v2 28/35] thread: de-const qemu_spin_destroy Date: Tue, 24 Jan 2023 18:01:20 +0000 Message-Id: <20230124180127.1881110-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230124180127.1881110-1-alex.bennee@linaro.org> References: <20230124180127.1881110-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Emilio Cota Reviewed-by: Alex Bennée Signed-off-by: Emilio Cota Reviewed-by: Richard Henderson Message-Id: <20230111151628.320011-4-cota@braap.org> Signed-off-by: Alex Bennée --- include/qemu/thread.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/qemu/thread.h b/include/qemu/thread.h index 7c6703bce3..7841084199 100644 --- a/include/qemu/thread.h +++ b/include/qemu/thread.h @@ -237,11 +237,10 @@ static inline void qemu_spin_init(QemuSpin *spin) #endif } -/* const parameter because the only purpose here is the TSAN annotation */ -static inline void qemu_spin_destroy(const QemuSpin *spin) +static inline void qemu_spin_destroy(QemuSpin *spin) { #ifdef CONFIG_TSAN - __tsan_mutex_destroy((void *)spin, __tsan_mutex_not_static); + __tsan_mutex_destroy(spin, __tsan_mutex_not_static); #endif }