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

Re: [PATCH] xsm: removing inclusion of byteorder.h


  • To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 17 Aug 2023 14:58:47 +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=JZVkbR5kIZLN0V9dYwxnTdHIbzBA+8a3U2HKYICrrGs=; b=LkYPg43ZwVhSXffo8tLc7ulcTY7E1m47xw0MWYA/ScSGqyG71NaNbY1N2Xpx4QUjSkJI53j6MVe3RaeF4PYEc9XknfLWrhtq+2Wj6G6a3qwycnptLQr03BNRqKXxspjeJRE3vhP1AsCse/UG8r0U1JeQ1D0ctJhipVJwvlfYjLBr9c8n132hRmgoIQ6SAdoHQyUR0zX6oyHSsjS2Tib7PczWmxK+WNtRjVI3HIREHFXO4nyabAA1MUvhTfUifNk0/gtZc6+yagneGd7gKwYlhCl52SHa5IhWzIJ8zAhe+nduSHwvrbhj4Pxgu5ot8IEaaZKChDf/5pO0ieLJvbvRCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RjGA7EVObMYIWyF9hx2S2rECp8ytDkJvjhDoTsS6DfnrVZxdjlOwR885b7ATOYzg681bykbSNFwJCE1NNC4xPMzO37mXdi/oyQGzSEDI8LM3ZIuoR2ocn0WlmN3NT3z/nY/y6b++HHNWQ0rqC/ZmWUBDSOuDGz40zzbv5Ui7Rc3gC1NnG+5gyUK30TfBv9w/OKENnLmdq8BaJ99WMBgeYInMg68yBVOGshnG9dI1JFIPhon3vbc3h3PtOo/PWHkNUcZhv6P0LG6SZV0WcBipuz4ao5Pb9gREILjGlk+uOAsBmzzL+E2lgi0Eq0TDD5CpEFZCSZ405fl/fpNr0zYG1A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Jason Andryuk <jandryuk@xxxxxxxxx>
  • Delivery-date: Thu, 17 Aug 2023 12:58:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.08.2023 14:49, Daniel P. Smith wrote:
> On 8/17/23 08:17, Jason Andryuk wrote:
>> On Wed, Aug 16, 2023 at 3:05 PM Daniel P. Smith
>> <dpsmith@xxxxxxxxxxxxxxxxxxxx> wrote:
>>>
>>> This is to complement patch 'common: move Linux-inherited fixed width type
>>> decls to common header' by removing the unnecessary include of
>>> 'asm/byteorder.h'. In the process of removing these includes, the ordering 
>>> was
>>> corrected to comply with current coding style.
>>>
>>> Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
>>> ---
>>>   xen/xsm/flask/ss/avtab.c       | 3 +--
>>>   xen/xsm/flask/ss/conditional.c | 9 ++++-----
>>>   xen/xsm/flask/ss/ebitmap.c     | 8 ++++----
>>>   xen/xsm/flask/ss/policydb.c    | 9 ++++-----
>>>   4 files changed, 13 insertions(+), 16 deletions(-)
>>
>> These four files all call le32_to_cpu(), so AFAICT, you are trading an
>> explicit dependency for an implicit one.  Is that what you want?
> 
> In fact, no. You comment here caused me to go back and try to see why 
> Jan said they needed to move. I realized there was a misunderstanding 
> about his commit message. He was not saying later, at a point in the 
> future, they need to be moved, but that as a result of his change the 
> inclusion ordering had to be changed. The former is what I understood 
> and thus attempted a build without them to see if it would work. I was 
> not expecting that conversions would have been able to be implicitly 
> resolved.
> 
> Since I already rebased to latest stable, I can resubmit a v2 with 
> correcting the inclusion order but with byteoder.h inclusion remaining. 
> Though that would render this down to simply a style change patch. Would 
> that still be acceptable Jan?

Of course, after all you're the maintainer of this code.

Jan



 


Rackspace

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