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

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


  • To: Jason Andryuk <jandryuk@xxxxxxxxx>
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 17 Aug 2023 08:49:35 -0400
  • Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692276584; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=5EqkT65579FjVu/OBxRV0FrblhMFppyH/DGRi6f53II=; b=S/8U8gkCSTJuVxKgdJzpVNbnQzb0cDl0SrqDAKFIv22TR19V2VSlhGE4ESizhOzHjivOn0A0BR66Xey1+YfdzGjruhP3EBFu/yXzdxZdeO2Hj5k6SJjw57yy5VRcz12PekeW3AvAXAgwokBsphiHqvM9+cYyLbWUTse1bRKK2RM=
  • Arc-seal: i=1; a=rsa-sha256; t=1692276584; cv=none; d=zohomail.com; s=zohoarc; b=lbDVtzI2goGDLp+DmV19JHBb1/G5QzjaRvsbn1KXrGGjFPKYefpPj8vTXWh1q3HofhKfNuhbVWb9SioL7owHhrxf/n8ouTLTUuumY0CeEhRMvy5xBbg8MQlWi4YboKCKYmnS8Bnree6pYoHCxkfub+4e9N+VULYTMP4RDK/nwP0=
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>
  • Delivery-date: Thu, 17 Aug 2023 12:49:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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?

v/r,
dps



 


Rackspace

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