From nobody Tue Dec 16 07:33:19 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1650874940; cv=none; d=zohomail.com; s=zohoarc; b=Q2RNtMJR99iQnHQVVJEsdFfkWtl7B9ABgKU++FR+elY6EOXU8RE1ixKTV/7ocxLMJ5ullyo3D+MnjvMAWscLbnKN7cHmx765q+mVL4HLJXZYsWHF6TDWBKRswi2l8699Ej4YLONUklPd9dHaBoEwqb7uMqTN0OP++HB7sKnIJ60= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650874940; 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=LP+dkidDrA7cfJYHAisZQeWSrGU9PlpHAtpMlIl/SfU=; b=C16v4zE2eUKoShOXnHOnkQsDMdi0jej7Rf2yi5WInfg8R9ret4qQS4NeHiKl7aszuquVLFhyWfnyj4A+XAB46Wvh5adPmpg6JpKUpun+cVN93FUZCR9/+W7FetFnWxR8Js7JTtp59sZwM8MXlSImFMyyztlvP6lGgUXm7Y2y8Tc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1650874940329824.7865511300303; Mon, 25 Apr 2022 01:22:20 -0700 (PDT) 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-434-KmgOKRtSMEmrWduxvqd3Ig-1; Mon, 25 Apr 2022 04:22:12 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2E58818E0052; Mon, 25 Apr 2022 08:22:10 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E8AA42B630; Mon, 25 Apr 2022 08:22:08 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 326021947BBE; Mon, 25 Apr 2022 08:22:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id CD58C1947BBD for ; Mon, 25 Apr 2022 08:22:06 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id BD67442B931; Mon, 25 Apr 2022 08:22:06 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B944042B630 for ; Mon, 25 Apr 2022 08:22:06 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A0882101AA4D for ; Mon, 25 Apr 2022 08:22:06 +0000 (UTC) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-184-dYMbDcnLPNeHRg9zcf5zTA-1; Mon, 25 Apr 2022 04:22:04 -0400 Received: by mail-wr1-f71.google.com with SMTP id g7-20020adfbc87000000b0020ac76d254bso1751669wrh.6 for ; Mon, 25 Apr 2022 01:22:04 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id s2-20020adfa282000000b0020ad9c40555sm2790490wra.94.2022.04.25.01.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 01:22:02 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 23B7667B1B59; Mon, 25 Apr 2022 10:22:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650874938; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=LP+dkidDrA7cfJYHAisZQeWSrGU9PlpHAtpMlIl/SfU=; b=HQpnv0liXRwF5iEtkgH+P6D/xhcpNeqCnTEsrkwGBMFzZhhMtax4BJX4ByKHnamQxtRKDO FPWb/TwH8xQuRsMBJAzEiNnk7BAZXvLWEIXBS9x6sSrTtHlaLq/kHZR59pqNTyvayaIB8S GdgdlEqhEIzvEM5HvYPrfNjOvjCM/FI= X-MC-Unique: KmgOKRtSMEmrWduxvqd3Ig-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: dYMbDcnLPNeHRg9zcf5zTA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LP+dkidDrA7cfJYHAisZQeWSrGU9PlpHAtpMlIl/SfU=; b=3c1enhJhVsZwgi/V0hf+gQXieOW3ex7Bc4kV+/wK+Owk4fk2M0GKzv5tkkWIrRvHGe iGi1xSN42/BLPhIKWSRQuqf+9jNvuCYixck/z+gDIEwjOYzrxHT+4zwaFOzbdObvXOaR NDaDNrNI4Unka0u/wiqWE5ZAUhNF6BLwa1V2UZH3VfQINFdNfAF+FyHTgUe2MotuoJmZ Pi8QXohcPUKTyt+OjyyMXQEKu/gwwDtHqdz0Fcjv+Tvcogr8qNkPggz4uTEWEnZgtnq/ iNcJIMrr5W8vNIRmeKInI55l8S3pMt5+RGT1dD/pIRAw5y3HM6B4dJ7N661PmRPHlFxM nTQg== X-Gm-Message-State: AOAM530tDBq0jtX1Mi8bQm5YMNfM/vY8CV3pr0lYVbHtUejaj0igzhiP wgEu6zFeuDr5XSADhhbcZ8mFYo3uWaAPniZTWWtVBka0SYbdZiqxC6LXftet08qjxIjVha5O9X2 P08jcUJ1PxeBZ8zb2bS4= X-Received: by 2002:a7b:c155:0:b0:38e:b840:c99e with SMTP id z21-20020a7bc155000000b0038eb840c99emr24205893wmi.201.1650874923692; Mon, 25 Apr 2022 01:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF3yOmquu6AEfkG27LCAoxXCxRyK/bmeHLHRzKzd33HzQgGq5KPLwi+gafnv2wUQux0kat3w== X-Received: by 2002:a7b:c155:0:b0:38e:b840:c99e with SMTP id z21-20020a7bc155000000b0038eb840c99emr24205866wmi.201.1650874923491; Mon, 25 Apr 2022 01:22:03 -0700 (PDT) From: Martin Kletzander To: qemu-devel@nongnu.org Subject: [PATCH 04/18] hw/audio/lm4549: Add errp error reporting to init function Date: Mon, 25 Apr 2022 10:21:47 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Stefan Hajnoczi , libvir-list@redhat.com, Christian Schoenebeck , Yanan Wang , Gerd Hoffmann , "Edgar E. Iglesias" , Qiuhao Li , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Marcel Apfelbaum , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Laurent Vivier , Thomas Huth , Alistair Francis , Alexander Bulekov , Bandan Das , qemu-arm@nongnu.org, Jan Kiszka , Pavel Dovgalyuk , Eduardo Habkost , Darren Kenny , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-ppc@nongnu.org, Paolo Bonzini Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1650874972235100003 Content-Type: text/plain; charset="utf-8"; x-default="true" This will be used in future commit. Signed-off-by: Martin Kletzander Reviewed-by: Daniel P. Berrang=C3=A9 --- hw/audio/lm4549.c | 3 ++- hw/audio/lm4549.h | 3 ++- hw/audio/pl041.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/audio/lm4549.c b/hw/audio/lm4549.c index 32b1481b5614..418041bc9c6c 100644 --- a/hw/audio/lm4549.c +++ b/hw/audio/lm4549.c @@ -276,7 +276,8 @@ static int lm4549_post_load(void *opaque, int version_i= d) return 0; } =20 -void lm4549_init(lm4549_state *s, lm4549_callback data_req_cb, void* opaqu= e) +void lm4549_init(lm4549_state *s, lm4549_callback data_req_cb, void* opaqu= e, + Error **errp) { struct audsettings as; =20 diff --git a/hw/audio/lm4549.h b/hw/audio/lm4549.h index aba9bb5b077c..61c3ab12dd33 100644 --- a/hw/audio/lm4549.h +++ b/hw/audio/lm4549.h @@ -36,7 +36,8 @@ typedef struct { extern const VMStateDescription vmstate_lm4549_state; =20 =20 -void lm4549_init(lm4549_state *s, lm4549_callback data_req, void *opaque); +void lm4549_init(lm4549_state *s, lm4549_callback data_req, void *opaque, + Error **errp); uint32_t lm4549_read(lm4549_state *s, hwaddr offset); void lm4549_write(lm4549_state *s, hwaddr offset, uint32_t value); uint32_t lm4549_write_samples(lm4549_state *s, uint32_t left, uint32_t rig= ht); diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c index 03acd4fe344b..868dffbfd321 100644 --- a/hw/audio/pl041.c +++ b/hw/audio/pl041.c @@ -564,7 +564,7 @@ static void pl041_realize(DeviceState *dev, Error **err= p) } =20 /* Init the codec */ - lm4549_init(&s->codec, &pl041_request_data, (void *)s); + lm4549_init(&s->codec, &pl041_request_data, (void *)s, errp); } =20 static const VMStateDescription vmstate_pl041_regfile =3D { --=20 2.35.1