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

Re: [PATCH 3/7] Flask: replace uses of __u32


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 9 Oct 2024 09:56:17 -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=1728482182; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=UUAbQ1oQRKVtCusz55NtGKctsR7mDu8o0ozNoJVqYGI=; b=dQ7MlkBYCAwDOBujHaDd67PXlHP0m9CH8KpoFJhlUjpB1svWZJAn1XwZ1sPMGCf4SRyrtpA+MrGiXQeEua+P3fsWkGcRvWjnhzx3+t8pGKa5jRrFmtEs5EdFSfHnXQPDgbnEn/LztGBsaToGtR8N1jPY9S/9RkTEcOFABhEA/X0=
  • Arc-seal: i=1; a=rsa-sha256; t=1728482182; cv=none; d=zohomail.com; s=zohoarc; b=j9Xp3zD580+pKwZEUm8J/M/hCDZNxWP1d9Yj7IGZGsVEkGGG7GcL6NlTzzFVJbOSBLrnSqVhdZ9oe9xvDZDkZMz42FUSGc2LC2uys0PSP//Wa7sQI6HIpdfSQVLhwmoxGJbGMCACqSfoUmVAY2mz5vx+z+iesxkwQwhKRkF4874=
  • Delivery-date: Wed, 09 Oct 2024 13:56:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/9/24 05:23, Jan Beulich wrote:
... by uint32_t.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
Uses of bool_val look suspicious; I looked at them because by its name
I would have hoped I can switch it to bool instead.

--- a/xen/xsm/flask/ss/conditional.h
+++ b/xen/xsm/flask/ss/conditional.h
@@ -29,8 +29,8 @@ struct cond_expr {
  #define COND_EQ        6 /* bool == bool */
  #define COND_NEQ    7 /* bool != bool */
  #define COND_LAST    COND_NEQ
-    __u32 expr_type;
-    __u32 bool_val;
+    uint32_t expr_type;
+    uint32_t bool_val;
      struct cond_expr *next;
  };
--- a/xen/xsm/flask/ss/policydb.h
+++ b/xen/xsm/flask/ss/policydb.h
@@ -131,7 +131,7 @@ struct range_trans {
/* Boolean data type */
  struct cond_bool_datum {
-    __u32 value;        /* internal type value */
+    uint32_t value;        /* internal type value */
      int state;
  };

Acked-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>




 


Rackspace

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