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

Re: [PATCH v5 2/2] earlycpio: lib-ify earlycpio.c


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 22 Jan 2026 12:50:32 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=xVo6bcO928HmmvC+3nXtZDNNIpqerp+tl/3J5S3LZFI=; b=BX9Y2SMlePdqvs4LlDBjR+BPLozPkXZLnKSLOVohiAhbPuShwbX7ebs/9b2WiJ45kYvod5FYERSSTFNtdPwUkhEaNf7SLv0zY4s5LmoFP5bfP1Ls9EpRJgYE6X1nwiPDe+vPbFEUIVT1+CcqkS1Lu74JpbLPkI8YmG65VHbbLkTusL1vtOA/Tc/X6bBd2yyeUr/xvhDeJ2yhiOYa1f+Ch6ifHkE+0qzMicCT3u3en0KFiRdw1qO+IUU7+2po1XnIARjJSRFgTtAoghavYQ+O8aopuauEDqXpcEyk5C6A5NlkSIMD9WFqI+nPGz+n5ORVrGNBiym9YTeOd/P2UFFrsw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K8JL67FpODbMaE/ZIp5XW8VtZRzVQIusRq4+ZXlHflg/pJsPtNYwYhUFeJazKK2c/w3KiykTlj393Xst2Wx/KUmdwOzG5+1ZByJdAagF3RilG/jqxB7BVykMMvCsTvA5MF9ekKDPYagcq6yQR5yNql7xpGOfoTshmLzbo+snEvZdgNRBKaZ1iUqPe3X+pAeYB6/JskiUMbACxLC+ldU8E+qKGe5meKB6eodSfsnQOYMvdjrPhu4sjpnEIE0hstGqcczwrxq6FU5lYrZT1j0R780IV7GuzjSvAsb+/HAfkBsbdk57w5JZt5d5Apqixm0VFJzX4V67gEd13JwVznhaqg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 22 Jan 2026 12:50:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22/01/2026 8:27 am, Jan Beulich wrote:
> On 21.01.2026 16:47, Alejandro Vallejo wrote:
>> --- a/docs/misra/exclude-list.json
>> +++ b/docs/misra/exclude-list.json
>> @@ -121,10 +121,6 @@
>>              "rel_path": "common/bunzip2.c",
>>              "comment": "Imported from Linux, ignore for now"
>>          },
>> -        {
>> -            "rel_path": "common/earlycpio.c",
>> -            "comment": "Imported from Linux, ignore for now"
>> -        },
>>          {
>>              "rel_path": "common/gzip/*",
>>              "comment": "Imported from Linux, ignore for now"
> Judging from Andrew's
> https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2277362625
> this doesn't quite work. As I had expected, since the file is compiled
> unconditionally now in its new location, some violations are now also
> unconditionally reported. (Some, checked for at linking time only, may not
> be reported anymore for the *-amd analysis jobs.)

Yeah, in hindsight this seems obvious, given that we're compiling then
discarding.

There are two options:

1. Use an earlier form which adds the new location to the exclude list 
(Still needs to be in this patch for bisectibility.)
2. Fix up the violations first (only 6 in total)

Two of the violations look easy to fix, two need the deviation for octal
numbers, but two essentially-char violations look to be hard.  The logic
is doing ASCII manipulation in what I would consider to be the
appropriate/canonical way, but Eclair does not like the mixture of ints
and character literals.

I dislike option 1, but as (contrary to my expectations) this is
interfering with the *-amd build, I'll tolerate it.

~Andrew



 


Rackspace

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