From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, Wei Liu <wl@xen.org>,
Juergen Gross <jgross@suse.com>,
George Dunlap <george.dunlap@citrix.com>,
Anthony PERARD <anthony.perard@citrix.com>
Subject: Re: Backport request (was: [PATCH v2] tools: convert bitfields to unsigned type)
Date: Tue, 4 Jul 2023 18:10:32 +0200 [thread overview]
Message-ID: <ZKREeO2XJ9C8FYOM@MacBook-Air-de-Roger.local> (raw)
In-Reply-To: <39e5b62b-d863-ad2b-5e9a-461fab6c9d31@suse.com>
On Tue, Jul 04, 2023 at 06:04:36PM +0200, Jan Beulich wrote:
> On 04.07.2023 17:55, Roger Pau Monné wrote:
> > On Tue, Jul 04, 2023 at 05:42:33PM +0200, Jan Beulich wrote:
> >> On 28.06.2023 11:46, Roger Pau Monné wrote:
> >>> On Mon, May 08, 2023 at 04:46:18PM +0000, Olaf Hering wrote:
> >>>> clang complains about the signed type:
> >>>>
> >>>> implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
> >>>>
> >>>> The potential ABI change in libxenvchan is covered by the Xen version based SONAME.
> >>>>
> >>>> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> >>>
> >>> Can we have this one backported to 4.17 at least?
> >>
> >> Hmm, while perhaps simple enough, in principle this wouldn't be a backporting
> >> candidate. May I ask why you consider this relevant?
> >
> > I have to take this fix in order to build 4.17 with current FreeBSD
> > clang. I think in the past we have backported changes in order to
> > build with newer gcc versions.
>
> We did, and this is good enough a justification.
>
> >> Plus is the mentioned
> >> "potential ABI change" safe to take on a stable branch? There's not going to
> >> be any SONAME change ...
> >
> > Is there any ABI change in practice? Both fields will still have a 1bit
> > size.
>
> But what a consumer of the interface reads out of such a field would change
> in case their compiler settings arrange for signed bitfields when signedness
> isn't explicit. We don't dictate, after all, what compiler settings to use
> with our interfaces (which generally is good, but which bites us here).
Hm, I see. I would argue that sign doesn't matter here, as those are
intended to be booleans, so anything different than 0 would map to
`true`. But implementation might have hard coded TRUE to -1, and the
change would then break them?
I'm failing to see that, because those implementations would still use
the old struct declarations they have been built with, and hence would
still threat it as signed?
Thanks, Roger.
next prev parent reply other threads:[~2023-07-04 16:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 16:46 [PATCH v2] tools: convert bitfields to unsigned type Olaf Hering
2023-05-09 7:10 ` Juergen Gross
2023-05-10 17:00 ` Anthony PERARD
2023-06-28 9:46 ` Backport request (was: [PATCH v2] tools: convert bitfields to unsigned type) Roger Pau Monné
2023-07-04 15:42 ` Jan Beulich
2023-07-04 15:55 ` Roger Pau Monné
2023-07-04 16:04 ` Jan Beulich
2023-07-04 16:10 ` Roger Pau Monné [this message]
2023-07-04 16:16 ` Jan Beulich
2023-07-06 8:53 ` Jan Beulich
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=ZKREeO2XJ9C8FYOM@MacBook-Air-de-Roger.local \
--to=roger.pau@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.