The hypercall console write won't modify the string. It's safe to put a const
here.
static inline int __must_check
HYPERVISOR_console_io(
- int cmd, unsigned int count, char *str)
+ int cmd, unsigned int count, const char *str)
{
return _hypercall3(int, console_io, cmd, count, str);
}
static inline int
HYPERVISOR_console_io(
- int cmd, int count, char *str)
+ int cmd, int count, const char *str)
{
return _hypercall3(int, console_io, cmd, count, str);
}
extern uint64_t get_system_time(int ticks);
static inline int
-HYPERVISOR_console_write(char *str, int count)
+HYPERVISOR_console_write(const char *str, int count)
{
return HYPERVISOR_console_io(CONSOLEIO_write, count, str);
}