From nobody Fri Sep 19 04:57:13 2025 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=1665666149; cv=none; d=zohomail.com; s=zohoarc; b=W1fh9U10S/z+b7ftwnLYuQQBxrctgf49/CuQ+MP3n1aH2HGgbJzK7dz+aftdsrcQ92byMYEKHJwCp3bY93KajPaxaJitIe92KelI1oyFd63XyFatvxlZE8WnMnRGs4lPjCnCDt9Qla+TUBHSgXCs0wV0uT0fXJpecenRZGqIUrk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665666149; 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=MgW0FJhS1AR3ZxmsZrbLa+Ggxo1fR+5TjfuCh1jGz8E=; b=VIJbDq6yVjpbcON3p5CXs8qP451wxZbgMzhkTi0IoyeRRSb0KHQ+WA1/alXgwLVJsIGOD4VhKzaQCUUul1NtwyTUDEXoTPFzVu4b954bF8sgT4/zF/UguQyoX103scD87wbS2dg4C+edvDu7hgFURVf4/ephA+CCkIE2uw1z1Vc= 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 166566614906488.86366118480953; Thu, 13 Oct 2022 06:02:29 -0700 (PDT) Received: from localhost ([::1]:44998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oixr0-0007yk-Qp for importer@patchew.org; Thu, 13 Oct 2022 09:02:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oixSw-0001W0-1g for qemu-devel@nongnu.org; Thu, 13 Oct 2022 08:37:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:29166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oixSu-00043j-0g for qemu-devel@nongnu.org; Thu, 13 Oct 2022 08:37:33 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-665-pYoXuSjCPsGalUZQoshp8A-1; Thu, 13 Oct 2022 08:37:30 -0400 Received: by mail-ej1-f72.google.com with SMTP id dt13-20020a170907728d00b007825956d979so833229ejc.15 for ; Thu, 13 Oct 2022 05:37:30 -0700 (PDT) Received: from avogadro.local ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.gmail.com with ESMTPSA id z1-20020a50eb41000000b00457c85bd890sm13260388edp.55.2022.10.13.05.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 05:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665664651; 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=MgW0FJhS1AR3ZxmsZrbLa+Ggxo1fR+5TjfuCh1jGz8E=; b=ETnQqnbQWRr839CP2GggJmYTQlMxGoX1GfTTwtTG6eoKMLGoZjE2l2sH1t9UcVqU40Ll2L abst3PEXuaYYiZ1DlRk3XVysP6gBSNBM5OZraAjo4TojZwxt3a6/TUjOJ14b02UFGWs9kV DYsBdBy+m7yATgPflze2uyqKcpl78I4= X-MC-Unique: pYoXuSjCPsGalUZQoshp8A-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=MgW0FJhS1AR3ZxmsZrbLa+Ggxo1fR+5TjfuCh1jGz8E=; b=Lxb3d1rb/0fz1rgn5t0fLufPV6BdKiW/G2EkYwfejCo5npnwGs90VuyuyZPOiDrx6N bvXfckl3jaDkBXMckx4HU3CYtH7J74+qplE2aLqUCgeQ1v2am0DVL7pKZnL5GLKnX4T9 Em7fPqs97FvuEvVlnUzckn+rpkiPMMGhKBQH1JLL06NMqN0jj2nuRH3tjkhK+j3peuap liFZXLB2D24GKyfrwIwXRfq/mu/00+8YF2VHr7pv6X6+azHAhICWmpn3AIMlK3K393jp EocAknAJgaC+IBJr2MINSd7SE01StC+Aeq1vSTQpVapr6U7hRp40W2sqNhiotPBRDOO0 +xKw== X-Gm-Message-State: ACrzQf0vWBbD/+GwpsxnLI35WLoAYxp5NPvmvxV7rk55wyK8jLZ3qptu at6lYtx9Qh/mlwrXAVrDvdKAZKG9v4Y3V+T2glBnkZstDlndZa0dlczlar62FC3rxV7G+Qqdvzn UDHo53Fu+LgFUDkw5oaG06/yDgyMnjA+irLY5IEmlSJe/O9EjvmAzjNYsU3yCJBPAWuI= X-Received: by 2002:a05:6402:414d:b0:451:73f0:e113 with SMTP id x13-20020a056402414d00b0045173f0e113mr31926437eda.207.1665664648867; Thu, 13 Oct 2022 05:37:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4EOsGfwXGbXBZlA9NUA0vtOa3TbOu6gwAIqc6DbtSBIuGnonPuqlN9iii/PFBcYslP8dYM9w== X-Received: by 2002:a05:6402:414d:b0:451:73f0:e113 with SMTP id x13-20020a056402414d00b0045173f0e113mr31926423eda.207.1665664648621; Thu, 13 Oct 2022 05:37:28 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, afaria@redhat.com Subject: [PATCH 05/24] block: add missing coroutine_fn annotation to prototypes Date: Thu, 13 Oct 2022 14:36:52 +0200 Message-Id: <20221013123711.620631-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221013123711.620631-1-pbonzini@redhat.com> References: <20221013123711.620631-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.129.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, 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" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1665666150657100001 Content-Type: text/plain; charset="utf-8" From: Alberto Faria The functions are marked coroutine_fn in the definition. Signed-off-by: Alberto Faria Signed-off-by: Paolo Bonzini --- include/block/block-io.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/block/block-io.h b/include/block/block-io.h index 492f95fc05..770ddeb7c8 100644 --- a/include/block/block-io.h +++ b/include/block/block-io.h @@ -83,12 +83,13 @@ void bdrv_aio_cancel(BlockAIOCB *acb); void bdrv_aio_cancel_async(BlockAIOCB *acb); =20 /* sg packet commands */ -int bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf); +int coroutine_fn bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf); =20 /* Ensure contents are flushed to disk. */ int coroutine_fn bdrv_co_flush(BlockDriverState *bs); =20 -int bdrv_co_pdiscard(BdrvChild *child, int64_t offset, int64_t bytes); +int coroutine_fn bdrv_co_pdiscard(BdrvChild *child, int64_t offset, + int64_t bytes); bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs); int bdrv_block_status(BlockDriverState *bs, int64_t offset, int64_t bytes, int64_t *pnum, int64_t *map, --=20 2.37.3