From nobody Tue Feb 10 07:42:19 2026 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=1655385664; cv=none; d=zohomail.com; s=zohoarc; b=hjAKZ9ckKK8lZGt1BWsNLw6eLvMlzy/YMiwiPwlfp7PwKDfV0j3XIEUfPeWLhJReienpcYWVCzFWGMr6/Lx8a5gO0kmYqugLdvXAsYatRkkL1sThQlwKOeksUAilU1caBp1ORBY0p1Q5RL42aGLJLO3nsqUgge76K5xBtHfzrKI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655385664; 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=Et7o+gm789s34jZqe/LwIE8WIv+NIHpOHYPmrL3ytP8=; b=bUBUFr1qf1imgFpStFGgv5ASt2Sc4Jas2p2cnHgRXeBfHRSoqzD0AeIPhXopr8qp69vFcwDQTUC5wKbwzeE3690Ga2H6QvsWL5NOzsQouJgg2nEgeOBwGldfjnMAb3QTyR+2QHl+mVeAofoArJ2ns2QchzmQ+phKQhcDp4nVHaQ= 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 1655385664262585.7337920121578; Thu, 16 Jun 2022 06:21:04 -0700 (PDT) Received: from localhost ([::1]:43260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1pQl-0007TX-52 for importer@patchew.org; Thu, 16 Jun 2022 09:21:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1ooe-0001X3-N5 for qemu-devel@nongnu.org; Thu, 16 Jun 2022 08:41:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:28648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1ood-0005sN-4b for qemu-devel@nongnu.org; Thu, 16 Jun 2022 08:41:40 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-607-mf8Vj5tQNSCy7A57D0VbIw-1; Thu, 16 Jun 2022 08:41:31 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 301D5101E986; Thu, 16 Jun 2022 12:41:31 +0000 (UTC) Received: from localhost (unknown [10.39.208.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D71D111F5; Thu, 16 Jun 2022 12:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655383295; 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=Et7o+gm789s34jZqe/LwIE8WIv+NIHpOHYPmrL3ytP8=; b=bbG1g7pZ8MUlOY2W7dp6upgt4+ynMwHO6P4ArcrqlRS3mZnRDYGrrCGrRQnNqc4XnAF+17 1ZTcO5ODTG4oU2Oy2IrLhcyBUx/I7N6KtPZ6nMbDgcwz2k8wOyd1riddTo3UUkQdNUQrt3 JsQlmAXOq4QwYDaBcGfUMD56ZPKNMT8= X-MC-Unique: mf8Vj5tQNSCy7A57D0VbIw-1 From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Cc: Markus Armbruster , Michael Roth , Kevin Wolf , Laurent Vivier , Warner Losh , Kyle Evans , Hanna Reitz , Vladimir Sementsov-Ogievskiy , Fam Zheng , Eric Blake , "Dr. David Alan Gilbert" , Paolo Bonzini , qemu-block@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 9/9] scripts/qapi: add required system includes to visitor Date: Thu, 16 Jun 2022 16:40:34 +0400 Message-Id: <20220616124034.3381391-10-marcandre.lureau@redhat.com> In-Reply-To: <20220616124034.3381391-1-marcandre.lureau@redhat.com> References: <20220616124034.3381391-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 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=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, 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, T_SCC_BODY_TEXT_LINE=-0.01 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: 1655385666545100001 From: Marc-Andr=C3=A9 Lureau The generated visitor code includes abort() & assert(), we shouldn't rely on the global "-i" headers to include the necessary system headers. Signed-off-by: Marc-Andr=C3=A9 Lureau --- scripts/qapi/visit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/qapi/visit.py b/scripts/qapi/visit.py index 1ff464c0360f..d686df17f4b6 100644 --- a/scripts/qapi/visit.py +++ b/scripts/qapi/visit.py @@ -326,6 +326,8 @@ def __init__(self, prefix: str, include: List[str]): def _begin_builtin_module(self) -> None: self._genc.preamble_add(mcgen(''' %(include)s +#include +#include =20 #include "qapi/error.h" #include "qapi/qapi-builtin-visit.h" @@ -342,6 +344,8 @@ def _begin_user_module(self, name: str) -> None: visit =3D self._module_basename('qapi-visit', name) self._genc.preamble_add(mcgen(''' %(include)s +#include +#include =20 #include "qapi/error.h" #include "qapi/qmp/qerror.h" --=20 2.37.0.rc0