From: Gerd Hoffmann <kraxel@redhat.com>
To: marcandre.lureau@redhat.com
Cc: qemu-devel@nongnu.org, fziglio@redhat.com
Subject: Re: [PATCH] spice: remove obsolete callback
Date: Mon, 21 Sep 2020 10:02:27 +0200 [thread overview]
Message-ID: <20200921080227.nx73aafh5myr3n7f@sirius.home.kraxel.org> (raw)
In-Reply-To: <20200918100737.91646-1-marcandre.lureau@redhat.com>
Hi,
> Fix compiler deprecation warnings with Spice > 0.14.3 (not released
> yet). We may want to wait until newer version is actually released to
> apply the patch.
Probably makes sense, just in case. It's not like this is an urgent
fix.
> +#if SPICE_SERVER_VERSION < 0x000e04 /* release 0.14.4 */
> static void interface_attach_worker(QXLInstance *sin, QXLWorker *qxl_worker)
> {
> PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl);
>
> trace_qxl_interface_attach_worker(qxl->id);
> }
> +#endif
> +#if SPICE_SERVER_VERSION < 0x000e04 /* release 0.14.4 */
> static void interface_attach_worker(QXLInstance *sin, QXLWorker *qxl_worker)
> {
> /* nothing to do */
> }
> +#endif
While being at it, can we also drop one of the dummy callbacks?
The tracepoint can go away too I think, given qemu doesn't do anything
in the callback anyway.
> +#if SPICE_SERVER_VERSION < 0x000e04 /* release 0.14.4 */
> .attache_worker = interface_attach_worker,
> +#endif
> .set_compression_level = interface_set_compression_level,
> #if SPICE_NEEDS_SET_MM_TIME
> .set_mm_time = interface_set_mm_time,
Add a SPICE_NEEDS_ATTACH_WORKER #define for consistency?
take care,
Gerd
prev parent reply other threads:[~2020-09-21 8:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 10:07 [PATCH] spice: remove obsolete callback marcandre.lureau
2020-09-18 10:19 ` Philippe Mathieu-Daudé
2020-09-18 11:24 ` Frediano Ziglio
2020-09-21 8:02 ` Gerd Hoffmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200921080227.nx73aafh5myr3n7f@sirius.home.kraxel.org \
--to=kraxel@redhat.com \
--cc=fziglio@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).