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

[PATCH 1/2] xen/kexec: Remove use of TRUE/FALSE


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Kevin Stefanov <kevin.stefanov@xxxxxxxxxx>
  • Date: Tue, 10 Aug 2021 18:47:36 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Kevin Stefanov <kevin.stefanov@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Tue, 10 Aug 2021 17:48:10 +0000
  • Ironport-hdrordr: A9a23:YRZEEatbhrbO8Odkcc5PIm7x7skC3IMji2hC6mlwRA09TyXGra 2TdaUgvyMc1gx7ZJh5o6H5BEDyewKmyXcV2/hdAV7GZmXbUQSTXeVfBOfZogEIXheOj9K1tp 0QP5SWaueAamSS5PySiGbXLz9j+qjgzEnCv5a8854Zd3AOV0gW1XYaNu/0KC1LbTgDIaB8OI uX58JBqTblU28QdN6HCn4MWPWGj8HXlbr9CCR2SSIP2U2rt3eF+bT6Gx+X0lM1SDVU24ov9m DDjkjQ+rijifem0RXRvlWjrqi+2eGRiuerNvb8yPT9GQ+czzpAo74RH4FqiQpF491HLmxa1+ Uk7S1QefiboEmhBF1d6SGdpjUIlgxepEMKgGXo/UfLsIj3Qik3BNFGgp8cehzF61A4tNU5y6 5T2XmF3qAnRC8osR6NkOQgbSsa4HZcYEBS4dI7njhaS88TebVRpYsQ8AdcF4oBBjvz7MQiHP N1BM/R6f5KeRfCBkqp9VVH0ZipRDA+Dx2GSk8Ntoic1CVXhmlwyw8dyNYElnkN+ZohQ91P5v jCMK5viLZSJ/VmJZ5VFaMEW4+6G2bNSRXDPCabJknmDrgOPzbXp5v+8NwOlZWXkVwzve4Pcb H6IRllXEIJCjzT4Py1re92G0r2MRqAtBzWu7Bjzok8vKHgT7z2NiDGQEwykqKb0oYiPvE=
  • Ironport-sdr: vbKjvOztIZYo3BhL1sTVMoT2jCjrNTlicI1KycVgdZp3WVJxuACQA6jI7l/Vsfrn0FEUjypKSt LSf1CCqTixdXG0UftzKVL/Obg3+ThOi1TvRGR5euAjvtpxM+3Cx/gcejfA/DXCMiXXc7lOSHEe qLPamh1NtJy1GQ7txE1pQd92Qyhv6HvCelDZuXxNoudasyxXjS0fFEdFHid7r2shu2+3kIh8wr q1cZrkaBH5z8MnpBYrDySt7qCAcKxOGHsy9xEjWEEeobkxA24C3f9g97/9MDOtL1YiVD587+0i WzvnmyYXA8up6Wu0T07fuynN
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Whilst fixing this, also changed bool_t to bool.

Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Kevin Stefanov <kevin.stefanov@xxxxxxxxxx>
---
CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/common/kexec.c      | 6 +++---
 xen/include/xen/kexec.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/common/kexec.c b/xen/common/kexec.c
index ebeee6405a..938cbb8005 100644
--- a/xen/common/kexec.c
+++ b/xen/common/kexec.c
@@ -35,7 +35,7 @@
 #include <compat/kexec.h>
 #endif
 
-bool_t kexecing = FALSE;
+bool kexecing;
 
 /* Memory regions to store the per cpu register state etc. on a crash. */
 typedef struct { Elf_Note * start; size_t size; } crash_note_range_t;
@@ -383,7 +383,7 @@ void kexec_crash(enum crash_reason reason)
     if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) )
         return;
 
-    kexecing = TRUE;
+    kexecing = true;
 
     if ( kexec_common_shutdown() != 0 )
         return;
@@ -399,7 +399,7 @@ static long kexec_reboot(void *_image)
 {
     struct kexec_image *image = _image;
 
-    kexecing = TRUE;
+    kexecing = true;
 
     kexec_common_shutdown();
     machine_reboot_kexec(image);
diff --git a/xen/include/xen/kexec.h b/xen/include/xen/kexec.h
index 9f7a912e97..02dc889334 100644
--- a/xen/include/xen/kexec.h
+++ b/xen/include/xen/kexec.h
@@ -17,7 +17,7 @@ typedef struct xen_kexec_reserve {
 extern xen_kexec_reserve_t kexec_crash_area;
 extern paddr_t kexec_crash_area_limit;
 
-extern bool_t kexecing;
+extern bool kexecing;
 
 void set_kexec_crash_area_size(u64 system_ram);
 
-- 
2.25.1




 


Rackspace

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