[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] drivers/char: make serial_parse_handle take const argument
commit ee8d9d0c1c1a8cef8ebcae16e0f574542d319e26 Author: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> AuthorDate: Tue Aug 16 11:23:26 2022 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Tue Aug 16 11:23:26 2022 +0200 drivers/char: make serial_parse_handle take const argument It doesn't modify it, and it will be necessary in a subsequent patch. Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/drivers/char/serial.c | 2 +- xen/include/xen/serial.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/char/serial.c b/xen/drivers/char/serial.c index f6c944bd30..47899222ce 100644 --- a/xen/drivers/char/serial.c +++ b/xen/drivers/char/serial.c @@ -301,7 +301,7 @@ char serial_getc(int handle) return c & 0x7f; } -int __init serial_parse_handle(char *conf) +int __init serial_parse_handle(const char *conf) { int handle, flags = 0; diff --git a/xen/include/xen/serial.h b/xen/include/xen/serial.h index 181e026967..4cd4ae5e6f 100644 --- a/xen/include/xen/serial.h +++ b/xen/include/xen/serial.h @@ -109,7 +109,7 @@ void serial_init_postirq(void); void serial_endboot(void); /* Takes a config string and creates a numeric handle on the COM port. */ -int serial_parse_handle(char *conf); +int serial_parse_handle(const char *conf); /* Transmit a single character via the specified COM port. */ void serial_putc(int handle, char c); -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |