[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backport request (was: [PATCH v2] tools: convert bitfields to unsigned type)


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 4 Jul 2023 18:04:36 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hZ/t4T0Rig3rhkRljDfde0rpw+0rv5ls4JN3fAJGi9w=; b=mFKlvn2jq9vkg/k46N1PHA6fegOxTT1rOzPtB8GKkuXN8GudWNt6Y8d+MMCtuVwhalGbt8O2fFQEYpfTn0THX+ZLDJtjSmAUYa/fwer2yV4jsjr1JEnT0LXf1ER5PlaxcxAfKGWGG0B52RwFoN6mT+BRHwS4gQXhqYrN091CBQ24j5mL5/2luZIEz8xH9Nf29EMoePQVHKHGB3hf4BF+Wo5XhBJvw+fa9ooQ5jGmNpGM+zCX3XU7WxG+wVCAj1OGBLlbywtemC+3S9/VL1CpCYKLLtWWak+CDE0QZoOCAT7dnXX7Rm6Ebj/NCgJD+XF7C+THfyLoJjrFfCycmw7LKQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CWFx1fw4VP7W9ps/a2w1ZGyqb6v0879xA93i3ERNvF3ZzdYYRM7vZzUym8/iCYmsFPO4qfTjUjQtYmTllmCnNyx0BaKq/LgIq8fxx/xOJUzxErvHAWYXpAXI9hJI91sfVveuzqXudRFMLbUTMRQsW4BXdy6VLFOWVH7iai2PkkCXxPWwaz8WMwKq9LXPHDUzB2wo6pCWG9xHFCly6jCfmN3aoqJQZhsQtVDK80scxpa2ofPug+rrj38X1q6gM2K+98WO5Z09o3QHIqsKFQc8H6Gj6NqegdnkbmEefq8Pyj194YlsSJgrqE7qx7lthJV4anZ1SzhECSkumMBPdpmaVA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Tue, 04 Jul 2023 16:04:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxxx>
>>>
>>> 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).

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.