From: Julien Grall Date: Wed, 7 Dec 2016 12:33:43 +0000 (+0000) Subject: xen/arm: traps: Switch from bool_t to bool X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3236 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3562558585a3cf5ff5854b3ac69ce3d872945ae8;p=xen.git xen/arm: traps: Switch from bool_t to bool Since commit 9202342 "xen/build: Use C99 booleans", bool_t is an alias to bool. Going forward, there is a preference to use bool rather than bool_t. Also replace 0 and 1 by true and false when relevant. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index ae921d701c..fb07ae1d67 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -154,13 +154,13 @@ static void print_xen_info(void) } #ifdef CONFIG_ARM_32 -static inline bool_t is_zero_register(int reg) +static inline bool is_zero_register(int reg) { /* There is no zero register for ARM32 */ - return 0; + return false; } #else -static inline bool_t is_zero_register(int reg) +static inline bool is_zero_register(int reg) { /* * For store/load and sysreg instruction, the encoding 31 always @@ -1500,7 +1500,7 @@ static void do_trap_hypercall(struct cpu_user_regs *regs, register_t *nr, #endif } -static bool_t check_multicall_32bit_clean(struct multicall_entry *multi) +static bool check_multicall_32bit_clean(struct multicall_entry *multi) { int i; @@ -1661,7 +1661,7 @@ static void advance_pc(struct cpu_user_regs *regs, const union hsr hsr) /* Read as zero and write ignore */ static void handle_raz_wi(struct cpu_user_regs *regs, int regidx, - bool_t read, + bool read, const union hsr hsr, int min_el) { @@ -1680,7 +1680,7 @@ static void handle_raz_wi(struct cpu_user_regs *regs, /* Write only as write ignore */ static void handle_wo_wi(struct cpu_user_regs *regs, int regidx, - bool_t read, + bool read, const union hsr hsr, int min_el) { @@ -1699,7 +1699,7 @@ static void handle_wo_wi(struct cpu_user_regs *regs, /* Read only as read as zero */ static void handle_ro_raz(struct cpu_user_regs *regs, int regidx, - bool_t read, + bool read, const union hsr hsr, int min_el) {