From nobody Wed May 15 19:02:40 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1671188917; cv=none; d=zohomail.com; s=zohoarc; b=JP8i+TZVVLFQ5y0C3NwS2YEaysIYC7t+0UR/kGTRedevVafRFWsZPnHnw3VD53lRcpq5v9dPgfbkVu8GHUbyuOTWl/+g22FPXe3iDaQvKGj4GFMRQ5XRWBH9m9dz4H0okfxYGiM3FMP9PMBrdFQzRi0HCzJz/snBk7S++iXrwFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671188917; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QjkWbr+hDWylT3kF8m1PTuocniRtsbmn33U7ESFQ3JI=; b=TwM6lZ2DZ4qDJEmyeyyu5jM6Qci+bcCPLTrB2KSKB4ryTb7bENJ+Zrr9e/scI3aR3gTAm1riXnKWWSD1fxvHS6zF8FIvNBPx1igH6E2l39lu1aFP8z2unReVfJmmfd0jG4yFQ3oTPtHq7sE7ofgEIjQQx+qcBf6WAtbCcT/oBvI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 167118891752114.734128449726654; Fri, 16 Dec 2022 03:08:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p68Zc-0004lj-Gb; Fri, 16 Dec 2022 06:08:17 -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 1p68ZY-0004kP-Fe for qemu-devel@nongnu.org; Fri, 16 Dec 2022 06:08:12 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p68ZT-0002HD-J0 for qemu-devel@nongnu.org; Fri, 16 Dec 2022 06:08:12 -0500 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-306-5e2wD1mQPoCwgkbcCULFiQ-1; Fri, 16 Dec 2022 06:08:05 -0500 Received: by mail-ed1-f70.google.com with SMTP id z16-20020a05640235d000b0046d0912ae25so1663723edc.5 for ; Fri, 16 Dec 2022 03:08:05 -0800 (PST) Received: from avogadro.local ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id i5-20020aa7c9c5000000b0046b00a9eeb5sm723942edt.49.2022.12.16.03.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 03:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671188887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QjkWbr+hDWylT3kF8m1PTuocniRtsbmn33U7ESFQ3JI=; b=OxojrGS3vIHaxkqBtCSv1lJmtGBA4MafHDI/UGzIEzAemAZUoteKjGGaoBr9BJf480a2Y1 TnjssXqwVDLNagMM9dkWlWpp0JnU0sxtywr89BNhcG5a4FBE8eOfLeRLKdKTo4Oy4Eal2q CT6i97SzDc9fuxjMJi4ZmHx8LSLkdbs= X-MC-Unique: 5e2wD1mQPoCwgkbcCULFiQ-1 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=QjkWbr+hDWylT3kF8m1PTuocniRtsbmn33U7ESFQ3JI=; b=kJuToo5C1HeJ+t7FeV61/mtiT8ZR8aARUF+Rr1+JPhO3HrFjYbRaAXBSLLxyQajvR4 czPYTqkEieSfysru5PRGQfZJk3uxKF5sg8RMM9rGYm306b5gHUV/5Dn1TPs3+i16dy/O s0W/lkISgryE0YzfqOakEOrQNf8IK6UBX0CTVnR8bN/qX6m2K+6WgYnZR9vSN3ooqtlI LKGlgB/yg4C8Voj5GEyuF9utwDm1GPAyQekAa74PrZxQ3ffUzzxeI8RKVciyOc1fbjfd OfYbtGc5r4/A5ODy/AyJEyt+wWo97LzlOnnOD8Sly+mv9BMwhIGbs9Fvl6NKlQ6jUzg3 iwbA== X-Gm-Message-State: ANoB5plrdMujthZzkSnG+vj6+zFiBA94nJ6/AoH7sSULI4yZr92VLoTU PB+hFwQ6cMF35ukG1LtTQiuayOor7ul3dBnq4ggG8NsGiu/Qc0KfOQpIokFc39C9ShmsKgeRnQ7 x+AtBvFuSYIlV0sD4cJmO5B3JdBHqwpMrA+6Pha5+86J2ZMWTNolCbTVW40/4ic2Lf4g= X-Received: by 2002:aa7:cd78:0:b0:46c:be9f:7c3b with SMTP id ca24-20020aa7cd78000000b0046cbe9f7c3bmr25849829edb.19.1671188884250; Fri, 16 Dec 2022 03:08:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KR7076flWZZSAMwZPJPhUN1aQeduOVXTcQHwtZ09l5wPfj+CKzgr3n6o+GuDO5zmB7Uq7AA== X-Received: by 2002:aa7:cd78:0:b0:46c:be9f:7c3b with SMTP id ca24-20020aa7cd78000000b0046cbe9f7c3bmr25849812edb.19.1671188884024; Fri, 16 Dec 2022 03:08:04 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: afaria@redhat.com, qemu-block@nongnu.org, kwolf@redhat.com Subject: [PATCH v2 1/2] coroutine: annotate coroutine_fn for libclang Date: Fri, 16 Dec 2022 12:07:57 +0100 Message-Id: <20221216110758.559947-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221216110758.559947-1-pbonzini@redhat.com> References: <20221216110758.559947-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1671188918773100002 Content-Type: text/plain; charset="utf-8" From: Alberto Faria Clang has a generic __annotate__ attribute that can be used by static analyzers to understand properties of functions and analyze the control flow. Furthermore, unlike TSA annotations, the __annotate__ attribute applies to function pointers as well. As a first step towards static analysis of coroutine_fn markers, attach the attribute to the marker when compiling with clang. Signed-off-by: Alberto Faria Signed-off-by: Paolo Bonzini --- include/qemu/coroutine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index 89650a2d7fab..b0c97f6fb7ad 100644 --- a/include/qemu/coroutine.h +++ b/include/qemu/coroutine.h @@ -42,7 +42,11 @@ * .... * } */ +#ifdef __clang__ +#define coroutine_fn __attribute__((__annotate__("coroutine_fn"))) +#else #define coroutine_fn +#endif =20 typedef struct Coroutine Coroutine; =20 --=20 2.38.1 From nobody Wed May 15 19:02:40 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1671188932; cv=none; d=zohomail.com; s=zohoarc; b=JCXp8QlKKkcg2OzWjMrus6Rh1AKyxYvZqclkRfY7kS4T6oiCWS/UqydI/vHoMZscsNuDwcz1SHKg72EHYg31wbo5rFbxuaDyn/c/9+yFCXnNpb/GdPgpNe3BbpjHC/gOxf7Fad3o3hrk5sk30nEHdtO07HQJX8rb4QXvoD7NeHQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671188932; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xmtQYpVJVIg+NWK19Ze1DFaTL5Qp/nHqKpooTf1QqUg=; b=bOJOqtocrW9xvhmA2sVKenG2YW8t02AswfFgvmUyFWKQVthecglOzh1AUA9GHNG/lBWOq4j85eW9EbAOJcWhtoDoNLoBp4XAzsI3NTZdnNflfvKH2uepaZ/3NhHP5TZJJ14jjWvSm+ZcKnDpB+7eP1mfZXTyyqQq8/0pm0SHfUs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1671188932614971.8575486271204; Fri, 16 Dec 2022 03:08:52 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p68Zh-0004mt-NB; Fri, 16 Dec 2022 06:08:21 -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 1p68Zg-0004me-Kh for qemu-devel@nongnu.org; Fri, 16 Dec 2022 06:08:20 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p68Zf-0002Ih-2r for qemu-devel@nongnu.org; Fri, 16 Dec 2022 06:08:20 -0500 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-186-6zeiD-dMNTS9W6T839m-qw-1; Fri, 16 Dec 2022 06:08:08 -0500 Received: by mail-ed1-f69.google.com with SMTP id z16-20020a05640235d000b0046d0912ae25so1663801edc.5 for ; Fri, 16 Dec 2022 03:08:08 -0800 (PST) Received: from avogadro.local ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id b8-20020a170906708800b007c4ed5ced79sm726391ejk.73.2022.12.16.03.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 03:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671188897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xmtQYpVJVIg+NWK19Ze1DFaTL5Qp/nHqKpooTf1QqUg=; b=MTCyh/VPvcG++V8jaRyvmXVGfQhYcWqdHSjnjJg9S10WxEdiXMvTiIyjgwif92dwBe74mI 8hS/hrVrGpc4irhS0zT0M8+WQGeIE/NBCvE8dAVfX9ANU71j1eMv8zRIG806J0FedbEXI5 1r9r9gKLdCUMZhI/IV0rT4TFQQnzRkQ= X-MC-Unique: 6zeiD-dMNTS9W6T839m-qw-1 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=xmtQYpVJVIg+NWK19Ze1DFaTL5Qp/nHqKpooTf1QqUg=; b=3CQ+ftv+QcBoPu2rFXs/dKvyrM6paxfVtFjC6piEUPsOYKhx0ou6G1h0lOVYfX8f7D MoS27qJKxC1MR6ERfqYVNGsqXmioEkwDPnTPvH3O9qHobGeIpvMWJ37Tofyv21Kgx8ua WNHtoefgAwxZM99MJxjGN1DgkoSsKJDYJp5Nn7U4RR22jtnHu479cJSoHpHLJumz8PbP JF0oEQdEP+vK8zOO8FyGKWtpVYxgoWfAkauEyUwguCr/o5XdTcOPIUsseU4J8LX6PxbV bp3svL+uAhwPtdWGzsDgwA+jCI+vCnZaIiVU4oAJv+wvYclubBsdwbYBrimo7Z8UU/Gv 6mqw== X-Gm-Message-State: ANoB5pnK1KyqXdPEF1vuMVTaR6e0weDg8Ryt0dAGkbAu+kVOIXITvDo4 u93TZXFJ4lVYt2jY+ybMS+LOTuZWUiNBI4j6/HUTeG1rhznvMlTLxf6A7M7/VKSsR7JkSR5igxR hG6ah90yt6NQJsDTWRXwJ5BXLBvWf762WnVdWJMkzi29ujkAB67WfHYH9nD2BqLhRvaQ= X-Received: by 2002:a17:907:2994:b0:7c0:e535:13fd with SMTP id eu20-20020a170907299400b007c0e53513fdmr21110953ejc.70.1671188887205; Fri, 16 Dec 2022 03:08:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KZ/XAAwySv8ozFsaXpJZNwqt4BQKq2hzsHiABg15C1kCi3O8Slct2EH3ROSsaojYxZ7EZhQ== X-Received: by 2002:a17:907:2994:b0:7c0:e535:13fd with SMTP id eu20-20020a170907299400b007c0e53513fdmr21110933ejc.70.1671188886722; Fri, 16 Dec 2022 03:08:06 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: afaria@redhat.com, qemu-block@nongnu.org, kwolf@redhat.com Subject: [PATCH v2 2/2] block: Add no_coroutine_fn and coroutine_mixed_fn marker Date: Fri, 16 Dec 2022 12:07:58 +0100 Message-Id: <20221216110758.559947-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221216110758.559947-1-pbonzini@redhat.com> References: <20221216110758.559947-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1671188934826100001 Content-Type: text/plain; charset="utf-8" From: Alberto Faria Add more annotations to functions, describing valid and invalid calls from coroutine to non-coroutine context. When applied to a function, no_coroutine_fn advertises that it should not be called from coroutine_fn functions. This can be because the function blocks or, in the case of generated_co_wrapper, to enforce that coroutine_fn functions directly call the coroutine_fn that backs the generated_co_wrapper. coroutine_mixed_fn instead is for function that can be called in both coroutine and non-coroutine context, but will suspend when called in coroutine context. Annotating them is a first step towards enforcing that non-annotated functions are absolutely not going to suspend. These can be used for example with the vrc tool: # find functions that *really* cannot be called from no_coroutine_fn (vrc) load --loader clang libblock.fa.p/meson-generated_.._block_block-= gen.c.o (vrc) paths [no_coroutine_fn,!coroutine_mixed_fn] bdrv_remove_persistent_dirty_bitmap bdrv_create bdrv_can_store_new_dirty_bitmap # find how coroutine_fns end up calling a mixed function (vrc) load --loader clang --force libblock.fa.p/*.c.o (vrc) paths [coroutine_fn] [!no_coroutine_fn]* [coroutine_mixed_fn] ... bdrv_pread <- vhdx_log_write <- vhdx_log_write_and_flush <- vhdx_co_wri= tev ... Signed-off-by: Alberto Faria [Rebase, add coroutine_mixed_fn. - Paolo] Signed-off-by: Paolo Bonzini --- include/block/block-common.h | 11 ++++++---- include/qemu/coroutine.h | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/include/block/block-common.h b/include/block/block-common.h index 4749c46a5e7e..cce79bd00135 100644 --- a/include/block/block-common.h +++ b/include/block/block-common.h @@ -50,11 +50,14 @@ * - co_wrapper_mixed_bdrv_rdlock are co_wrapper_mixed functions but * automatically take and release the graph rdlock when creating a new * coroutine. + * + * These functions should not be called from a coroutine_fn; instead, + * call the wrapped function directly. */ -#define co_wrapper -#define co_wrapper_mixed -#define co_wrapper_bdrv_rdlock -#define co_wrapper_mixed_bdrv_rdlock +#define co_wrapper no_coroutine_fn +#define co_wrapper_mixed no_coroutine_fn coroutine_mixed_fn +#define co_wrapper_bdrv_rdlock no_coroutine_fn +#define co_wrapper_mixed_bdrv_rdlock no_coroutine_fn coroutine_mixed_fn =20 #include "block/dirty-bitmap.h" #include "block/blockjob.h" diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index b0c97f6fb7ad..3ab086aee158 100644 --- a/include/qemu/coroutine.h +++ b/include/qemu/coroutine.h @@ -48,6 +48,45 @@ #define coroutine_fn #endif =20 +/** + * Mark a function that can suspend when executed in coroutine context, + * but can handle running in non-coroutine context too. + */ +#ifdef __clang__ +#define coroutine_mixed_fn __attribute__((__annotate__("coroutine_mixed_fn= "))) +#else +#define coroutine_mixed_fn +#endif + +/** + * Mark a function that should not be called from a coroutine context. + * Usually there will be an analogous, coroutine_fn function that should + * be used instead. + * + * When the function is also marked as coroutine_mixed_fn, the function sh= ould + * only be called if the caller does not know whether it is in coroutine + * context. + * + * Functions that are only no_coroutine_fn, on the other hand, should not + * be called from within coroutines at all. This for example includes + * functions that block. + * + * In the future it would be nice to enable compiler or static checker + * support for catching such errors. This annotation is the first step + * towards this, and in the meantime it serves as documentation. + * + * For example: + * + * static void no_coroutine_fn foo(void) { + * .... + * } + */ +#ifdef __clang__ +#define no_coroutine_fn __attribute__((__annotate__("no_coroutine_fn"))) +#else +#define no_coroutine_fn +#endif + typedef struct Coroutine Coroutine; =20 /** --=20 2.38.1