Re: [PATCH] xen/serial: scif: Rework how the parameters are found

2021-01-04 Thread Stefano Stabellini
On Thu, 24 Dec 2020, Julien Grall wrote: > From: Julien Grall > > clang 11 will throw the following error while build Xen: > > scif-uart.c:333:33: error: cast to smaller integer type 'enum port_types' > from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > uart->params = &port_params[

Re: [PATCH] xen/serial: scif: Rework how the parameters are found

2020-12-24 Thread Oleksandr
On 24.12.20 18:50, Julien Grall wrote: Hi Julien From: Julien Grall clang 11 will throw the following error while build Xen: scif-uart.c:333:33: error: cast to smaller integer type 'enum port_types' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] uart->params = &port_params

[PATCH] xen/serial: scif: Rework how the parameters are found

2020-12-24 Thread Julien Grall
From: Julien Grall clang 11 will throw the following error while build Xen: scif-uart.c:333:33: error: cast to smaller integer type 'enum port_types' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] uart->params = &port_params[(enum port_types)match->data];