From patchwork Fri Nov 25 17:55:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 628565 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1288112pvb; Fri, 25 Nov 2022 09:55:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6MA2H3QTINF9jz9NBWnBCSDg6o2/IlLI9qrRiH9A0nkMUVNE+N3tQccY+Uwt52BHsWNSOG X-Received: by 2002:a0c:ec49:0:b0:4c6:cbd3:5b14 with SMTP id n9-20020a0cec49000000b004c6cbd35b14mr12014669qvq.105.1669398947777; Fri, 25 Nov 2022 09:55:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669398947; cv=none; d=google.com; s=arc-20160816; b=WlTpkjNWBsSjtZSRU3Q29ZG3r94Ny0r9kqTvD/0QqL6zW2JKXLNR7DcY1DRDstoFe5 m3g2hmGtDWKyG97jBvHIYOGiHYNgAi3nifUXMRid2JnkHBTUxKhW2CkamIAqKLVvm5d3 xNE9seJAuw5C5CdXmvdLpcrpRfB2xbZZXe3KOdwMsj6eOlE32drG1CaE0YhhgeaU5b5Y b/6NZM9im/qq87aHIV5j01nIVswolG+6cYom2gwjF9ELUIpVwwDdhRDYWgrRG2Aqj/xP 7bPVIzvopRTkmvJMFhWRvJpq4SJNvuIiI9xb8JFQqVU7xlUDBeuC1gU1Uaqbsukt23AV E6CQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=SsKozInxZZRcq/qH+57Qf2OKb8tQKRGxe6TGhWxBgV8=; b=t7TL27/am7jipMyIZvFxMhUGag7nMGoH7gowKhypcWFOHJJeDOhNiwg0S5uWBD5maG 2ZmOUfDR+7doj00575m32yFbC6Q5sv8eNHog7enHa8sEe8iWMiqgopVluEhly1Xw5FJ7 C3xta6fmrcZQi7iREowCHLN0i7rQJqO/aP+Nzh6chAqS6vZg4Rocavm/M3iGlWsgM6DH WukV/tggIqiBSJeT7qTqbjRbpKHZkmmuCQSiHQnXI2XjNf4aYSS6cDZaTwwi+L75je0z aw9VFWK+fKs1H1nKTpTQ1671P71h0FYftDBMAi6f2PwiqiUFy/88aSZA5EkgHAhWKaeO IYbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="r/eFlGsQ"; 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 y13-20020a05620a25cd00b006f8aba9d693si3301982qko.628.2022.11.25.09.55.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Nov 2022 09:55:47 -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="r/eFlGsQ"; 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 1oycvM-0007nm-IK; Fri, 25 Nov 2022 12:55:40 -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 1oycvL-0007md-1s for qemu-devel@nongnu.org; Fri, 25 Nov 2022 12:55:39 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oycvJ-0003TI-5L for qemu-devel@nongnu.org; Fri, 25 Nov 2022 12:55:38 -0500 Received: by mail-wm1-x329.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so3959394wmg.2 for ; Fri, 25 Nov 2022 09:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SsKozInxZZRcq/qH+57Qf2OKb8tQKRGxe6TGhWxBgV8=; b=r/eFlGsQyTU041ooLeXMYx0sCfWtZLmZcyACZ+5LEr3BABCD1pqs1ELCCWTySa7aSJ 8clZVSQUf8jnr8+vXz3OamuAHNslneCWLKCdO+ofQW7KKwJ9Wdf4eyLjhuPRhkwmzkad PMyPkPE5UMiTx8rt1dZQwkrEwn8rrH8ObnDUIWWrQfHjGPWL6Vtaj3gLhxPHE8ZyP5ev W6wgLTBn2ABHQaJvT4f9FqnwfuVNt1wmitrsB5vS1PvWCkBS/aGMGqwnQpXMhmNj17sH MGPIynJm/M1p76TwDBJ633zYZI4xsqkbOg2iQyG7/ejfiPDBXpZtDkyvSadvAX6+51FK 7eUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SsKozInxZZRcq/qH+57Qf2OKb8tQKRGxe6TGhWxBgV8=; b=ElqbRgNEVamWohsONLqWhseNcSlnyQmD7DxSer+cj5RhQjFmUp0mbQIfhMJ80x3+IL CVkTnApuX6ov2o8493U8NJIkNxKqEVNZ4L128WbfGCKmciuxomBcCmiSzFzreqaQBWV5 Gn7GxdwPOUIHgniGRi9U+QjrFrudy0/r2KGL2pMJjdiQQVuzrUQAujF2qVw1rqi28YlW JiLvlvHyDX2A+U/6+d6xag1HN/qL9ORjb0LmXO6OEkxcz5XBeWZo39rgcCkY4J4XZldX Yh5JE7IYS8cFrte13di/S1bdQiIxLj35qjqZLreBknTv9FW2/N+mY/vN6K1at9A5uJaR lBgw== X-Gm-Message-State: ANoB5pm+9MqdQlMNvQk2+4Du5srS7tLoPnEVwrHtTabmdsI3MZR855xO NlEo/gffV6h9Qw0ZO4xnq1P+RY8sddcQRQ== X-Received: by 2002:a05:600c:4a99:b0:3cf:91e5:3d69 with SMTP id b25-20020a05600c4a9900b003cf91e53d69mr33051832wmp.160.1669398934417; Fri, 25 Nov 2022 09:55:34 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id x9-20020a5d6b49000000b002366e3f1497sm4234200wrw.6.2022.11.25.09.55.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 25 Nov 2022 09:55:33 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Paolo Bonzini , Kevin Wolf , qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-8.0] coroutine: Add missing include Date: Fri, 25 Nov 2022 18:55:32 +0100 Message-Id: <20221125175532.48858-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 qemu_co_mutex_assert_locked() calls qatomic_read(), which is declared in . This fixes when refactoring: In file included from include/qemu/osdep.h:113, from ../../util/error-report.c:13: include/qemu/coroutine.h: In function 'qemu_co_mutex_assert_locked': include/qemu/coroutine.h:182:12: error: implicit declaration of function 'qatomic_read' [-Werror=implicit-function-declaration] 182 | assert(qatomic_read(&mutex->locked) && | ^~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/coroutine.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index 89650a2d7f..1750c30d8e 100644 --- a/include/qemu/coroutine.h +++ b/include/qemu/coroutine.h @@ -17,6 +17,7 @@ #include "qemu/queue.h" #include "qemu/timer.h" +#include "qemu/atomic.h" /** * Coroutines are a mechanism for stack switching and can be used for