From nobody Sun Feb 8 11:16:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583928851; cv=none; d=zohomail.com; s=zohoarc; b=MWqRMGN1c9A+wHipqIvtO8tugKSXg3jSgdfEgHHbTaKMAZK1G/0vvENFCoAPUAoBtH8jOQX6rWdEh6vycAoZ2gKBH+iLppeV3mVaI4HipEbUBoR+fxHb+tA1c0WBB3PU9hv3ylC34DvQ/aPTaajQah40L8k2Mi+3QmtkRZ27zsM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583928851; h=Content-Type:Content-Transfer-Encoding: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=cIlfhGzLU3wsHg2n0VTUclvSG3S9FXxmHHyzJF7RcfI=; b=HyhVAnA03jnnKuG7ByqB/ic0hKDRD5YZJED+u5Ra8W24UY+znGXVN0l3afgiuT5DbIoKSNPqMbLF8jJ+iLmdB/bHua7mSD9Ylg+7A2zLYD5Sd//2rSoEB6GgRsidxE/yvThR8R2KMwlgOiQev41e7v3t8G0Uw2cXp/HWcJrWpIg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1583928851096298.00258044168027; Wed, 11 Mar 2020 05:14:11 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-142-gPudR99jP867w3pPEagatQ-1; Wed, 11 Mar 2020 08:14:03 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3CCD313F8; Wed, 11 Mar 2020 12:13:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 921E390519; Wed, 11 Mar 2020 12:13:57 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E2BA786A19; Wed, 11 Mar 2020 12:13:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02BCDqVj007414 for ; Wed, 11 Mar 2020 08:13:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 122FD73865; Wed, 11 Mar 2020 12:13:52 +0000 (UTC) Received: from antique-laptop.redhat.com (ovpn-200-54.brq.redhat.com [10.40.200.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7040C5C13D for ; Wed, 11 Mar 2020 12:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583928847; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cIlfhGzLU3wsHg2n0VTUclvSG3S9FXxmHHyzJF7RcfI=; b=J8cRhD5llqOTrWpKR9ofQTVvaJeoHmQ1pwpykqF/aZEToUs2wkEiYzCTICXNG+U7hvsWWY z27SRmJoF+hrPvocNMKZs+37IkcFrNxciTAZPt7ETCcd4qYxYRwLC7dxhXwyqFjNEgYjws 8IFKtG9AY0x2qVtj6oVr58jgsUJYaL4= X-MC-Unique: gPudR99jP867w3pPEagatQ-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] domain_conf: fix ATTRIBUTE_NONNULL for virDomainDefFormat Date: Wed, 11 Mar 2020 13:13:43 +0100 Message-Id: <329c00be363612a4ba3cff5fe2401f41669261fd.1583928792.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Commit <92d412149ce563da48ba299ec49c07d825370cbf> introduced `xmlopt` attribute to `virDomainDefFormat` function and marked it as NONNULL which is not correct because in hyperv dirver we call that function with NULL as `xmlopt`. Signed-off-by: Pavel Hrdina --- src/conf/domain_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 91b776c28a..8d6bc5057d 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3132,7 +3132,7 @@ unsigned int virDomainDefFormatConvertXMLFlags(unsign= ed int flags); char *virDomainDefFormat(virDomainDefPtr def, virDomainXMLOptionPtr xmlopt, unsigned int flags) - ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); + ATTRIBUTE_NONNULL(1); char *virDomainObjFormat(virDomainObjPtr obj, virDomainXMLOptionPtr xmlopt, unsigned int flags) --=20 2.24.1