]> xenbits.xensource.com Git - xen.git/commitdiff
x86/dmi.c: use plain bool
authorWei Liu <wei.liu2@citrix.com>
Fri, 30 Jun 2017 15:54:18 +0000 (16:54 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 4 Jul 2017 13:54:42 +0000 (14:54 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/dmi_scan.c
xen/include/xen/dmi.h

index 8564a77ea009595766c18f6dc41acb2c2459659c..fcdf2d3952e8a8dbc2a33a04811127bd57fc9b2b 100644 (file)
@@ -183,8 +183,8 @@ static int __init dmi_table(paddr_t base, u32 len, int num,
 }
 
 
-static inline bool_t __init dmi_checksum(const void __iomem *buf,
-                                        unsigned int len)
+static inline bool __init dmi_checksum(const void __iomem *buf,
+                                       unsigned int len)
 {
        u8 sum = 0;
        const u8 *p = buf;
@@ -753,10 +753,10 @@ fail:             d++;
  *     On return, year, month and day are guaranteed to be in the
  *     range of [0,9999], [0,12] and [0,31] respectively.
  */
-bool_t __init dmi_get_date(int field, int *yearp, int *monthp, int *dayp)
+bool __init dmi_get_date(int field, int *yearp, int *monthp, int *dayp)
 {
        int year = 0, month = 0, day = 0;
-       bool_t exists;
+       bool exists;
        const char *s, *e, *y;
 
        s = field < DMI_STRING_MAX ? dmi_ident[field] : NULL;
index df26d4b3e3ef692f9797e37f6d2ce5982f8e6b08..eba2c27b2ffd2aa187e143aa6914c8ddee01b2a8 100644 (file)
@@ -36,7 +36,7 @@ extern int dmi_check_system(struct dmi_system_id *list);
 extern void dmi_scan_machine(void);
 extern const char *dmi_get_table(paddr_t *base, u32 *len);
 extern void dmi_efi_get_table(const void *smbios, const void *smbios3);
-bool_t dmi_get_date(int field, int *yearp, int *monthp, int *dayp);
+bool dmi_get_date(int field, int *yearp, int *monthp, int *dayp);
 extern void dmi_end_boot(void);
 
 #endif /* __DMI_H__ */