From patchwork Thu Jan 26 11:22:43 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: 647094 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp186260pvb; Thu, 26 Jan 2023 03:25:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvfR53kxo7M89RBDIXQvQTVcA7Pk2tnPBDsKHJC22vnTExm9NrK0eVCbagDn3dvbREDetpv X-Received: by 2002:ac8:4686:0:b0:3a5:7a30:bd22 with SMTP id g6-20020ac84686000000b003a57a30bd22mr50035449qto.53.1674732327531; Thu, 26 Jan 2023 03:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674732327; cv=none; d=google.com; s=arc-20160816; b=Uqib8EAn4l1mXXrpdorQBTzrodiY0EMuCQYr9VKx8Hd9oxIjwx14g5M/4SUaa1LoFK yTg0wWolPFcrsdPTCh5kbtrOrTxgJbyP+FlnUj1/oyYJ8iM3Ydo38hNGG6IJMVelq/aL z+tStX62iIJjG0l+JAJ/f/VsJdHeiTpPhWKV91QKQUblJ6mTJ+bwZliWdIn6rNjaOknD WEveBVk8BPujY2hDqyFPBgLz2vYBi40+jJIIB+6aCDekPf2RNyHLic3CMK822n5bbCsJ 2SbHbNUI/lkWDC5JpG96oav/LKf/7FyWXA4U+Pdls3uR9n/mDihWiaCZBRHxWHpWhg92 BELw== 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=A69+dAntaMgm9t8HgL26p/jUP8rIwyImyTd2jAKYUvo=; b=rdqtVAyTSJascXh9TyATTTMT2iI0rmZ0RHkwLMZH8Vcb4EGp4HKj2075Bqhdzc24CX F4dR1VRO9XeNkQUTIGgLzZQl6D7IlFiTj2ZaiGDYbVSeol+6oI9fQMKrFV3i4MeaD5BU Qa/q/BK+KK1N7GQyCrn/s9SoxHE+vnGZyKRAB+b0t3N7UEc8qbd3jyBSIphNGt3KbDvF lm4otQOrjvm26F6XRQlmRJEfnwGMRn8vChOTid93I0y53McaAqDOnH/AhRuqmAznTZEp GWj6N+Pm8JwSqdRPaPix6URttBnchNA2guHf3tRV+iMCiiMj1a+hZnO4bIRV620OLLo/ Tvaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="guI/7Ul4"; 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 e17-20020ac85dd1000000b003a7eee6dc26si497268qtx.671.2023.01.26.03.25.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jan 2023 03:25:27 -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="guI/7Ul4"; 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 1pL0Lf-000427-5k; Thu, 26 Jan 2023 06:23:19 -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 1pL0LU-0002sq-Bj for qemu-devel@nongnu.org; Thu, 26 Jan 2023 06:23:08 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pL0LS-0004EY-Gb for qemu-devel@nongnu.org; Thu, 26 Jan 2023 06:23:08 -0500 Received: by mail-wr1-x429.google.com with SMTP id b7so1441399wrt.3 for ; Thu, 26 Jan 2023 03:23:05 -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=A69+dAntaMgm9t8HgL26p/jUP8rIwyImyTd2jAKYUvo=; b=guI/7Ul4red8NI9cBLMlhm/aBAMprxCKvAMunwXfmVhueIgGDu6er6LJFsRrWOg7iT x7JXDNgSoY5uZocjM1ISCsO2xjIGYHlnrNBizvGEEocbsyC+6z2b0z7HlIdbmt39a0Ec ox44I6Hz6ak813OJRElceWrK6cpQIwbjupSjkdYL2CMJSKaiubPUa0dofX30PQ2RNJ6K 7WzLPspgqVaXpVNX0iJ1EkH7w4eqLAxTjopTvCXXlp9cNYCZBNjIj9dpb8uicJu6J/rG PaJ7tAUdNFOMIn8I5zmC7dwjxDbw9da6uNO/gn1xZqeNr2sk/kSsRjI7UapI/RohQuyJ G2pA== 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=A69+dAntaMgm9t8HgL26p/jUP8rIwyImyTd2jAKYUvo=; b=hRNPJqDPIK/RxIlgCP74R2QgES06gOEZWcy0zPs0SvDJCpNbrIW1W91raLPIj83v04 LPzIyVQFordAP/TEq+tx52VkmoBFIH3oHApcv+uOe7B52jZ7nLfaclD8GnSLCdg92n2s Mk1lmuiFXlbAp7n5o7cVwyaBtXHRVtaFfmvoB+ZXC0bLp1wTVhU36ul4M1xfZaaGmOJT UXxBfVl6KjhB65xu0j9U2qXUdekPmaKJ8mIwBNvjKmP+w+olFujzAZBAL7ySJctudJvj wq4hf84YsPzix7y4zmKp8CQyw4q4irvrMtZBBp5TeBiwXUA0Seus+MDzi8xOmLHILr0w a9sw== X-Gm-Message-State: AFqh2kpGSP1Ms0nXA1qwDoGC2LjWw5JIIaURr+cnhkeNLWSc5wc05yQa lT3vJb22N2PPRe8eeH0a2AjniA== X-Received: by 2002:adf:f242:0:b0:2b2:1db6:a6bb with SMTP id b2-20020adff242000000b002b21db6a6bbmr30761960wrp.20.1674732185002; Thu, 26 Jan 2023 03:23:05 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id x7-20020a5d6b47000000b002bbed1388a5sm1063695wrw.15.2023.01.26.03.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 03:23:01 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D0D771FFB7; Thu, 26 Jan 2023 11:22:58 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Emilio Cota , =?utf-8?q?Alex_B?= =?utf-8?q?enn=C3=A9e?= , Richard Henderson Subject: [PULL 28/35] thread: de-const qemu_spin_destroy Date: Thu, 26 Jan 2023 11:22:43 +0000 Message-Id: <20230126112250.2584701-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230126112250.2584701-1-alex.bennee@linaro.org> References: <20230126112250.2584701-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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=ham 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 Message-Id: <20230124180127.1881110-29-alex.bennee@linaro.org> 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 }