The use of bool needs xen/types.h, which shutdown.h picks up by chance in all
other architectures.
While fixing this, swap u8 for unsigned char in hwdom_shutdown(), and move
opt_noreboot into __ro_after_init.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
#include <public/sched.h>
/* opt_noreboot: If true, machine will need manual reset on error. */
-bool __read_mostly opt_noreboot;
+bool __ro_after_init opt_noreboot;
boolean_param("noreboot", opt_noreboot);
static void noreturn reboot_or_halt(void)
}
}
-void hwdom_shutdown(u8 reason)
+void hwdom_shutdown(unsigned char reason)
{
switch ( reason )
{
#define __XEN_SHUTDOWN_H__
#include <xen/compiler.h>
+#include <xen/types.h>
/* opt_noreboot: If true, machine will need manual reset on error. */
extern bool opt_noreboot;
-void noreturn hwdom_shutdown(u8 reason);
+void noreturn hwdom_shutdown(unsigned char reason);
void noreturn machine_restart(unsigned int delay_millisecs);
void noreturn machine_halt(void);