From: Wei Liu Date: Fri, 30 Jun 2017 15:54:18 +0000 (+0100) Subject: x86/dmi.c: use plain bool X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1833 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=28dfd8f3fd03b86e04b58495f0104a67b615f4ca;p=xen.git x86/dmi.c: use plain bool Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/dmi_scan.c b/xen/arch/x86/dmi_scan.c index 8564a77ea0..fcdf2d3952 100644 --- a/xen/arch/x86/dmi_scan.c +++ b/xen/arch/x86/dmi_scan.c @@ -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; diff --git a/xen/include/xen/dmi.h b/xen/include/xen/dmi.h index df26d4b3e3..eba2c27b2f 100644 --- a/xen/include/xen/dmi.h +++ b/xen/include/xen/dmi.h @@ -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__ */