[Xenomai] Compileerror rt_imx_uart.c on kernel 3.10.53 ARM

Gilles Chanteperdrix gilles.chanteperdrix at xenomai.org
Mon Dec 14 23:48:50 CET 2015


On Mon, Dec 14, 2015 at 10:04:17AM +0100, Wolfgang Netbal wrote:
> Dear All,
> 
> when I activated the serial realtime driver 
> (CONFIG_XENO_DRIVERS_IMX_UART) in my kernel 3.10.53
> I get the following compile errors.
> 
> drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_probe':
> 
> drivers/xenomai/serial/rt_imx_uart.c:2032:20: error: 'struct imxuart_platform_data' has no member named 'init'
> 
>    if (pdata && pdata->init) {
> 
>                      ^
> 
> drivers/xenomai/serial/rt_imx_uart.c:2033:14: error: 'struct imxuart_platform_data' has no member named 'init'
> 
>     err = pdata->init(pdev);
> 
>                ^
> 
> drivers/xenomai/serial/rt_imx_uart.c:2095:20: error: 'struct imxuart_platform_data' has no member named 'exit'
> 
>    if (pdata && pdata->exit)
> 
>                      ^
> 
> drivers/xenomai/serial/rt_imx_uart.c:2096:8: error: 'struct imxuart_platform_data' has no member named 'exit'
> 
>     pdata->exit(pdev);
> 
>          ^
> 
> drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_remove':
> 
> drivers/xenomai/serial/rt_imx_uart.c:2126:20: error: 'struct imxuart_platform_data' has no member named 'exit'
> 
>    if (pdata && pdata->exit)
> 
>                      ^
> 
> drivers/xenomai/serial/rt_imx_uart.c:2127:8: error: 'struct imxuart_platform_data' has no member named 'exit'
> 
>     pdata->exit(pdev);
> 
> 
> 
> I found out that in kernel 3.10.53 the function pointer to exit and init 
> function in struct imxuart_platform_data is missing.
> 
> I tried to find a newer version of rt_imx_uart.c in xenomai 3.0 but the 
> file is the same.
> 
> Do you have any idea how to fix this ?

Maybe the file is adapted to newer kernel versions? Such as Linux
3.14 or Linux 3.18 ?

Please try, if you want to answer a random mail, to remove any
reference-to or in-reply-to header, so that your mail does not
appear in a middle of an unrelated thread. Look at the mess you have
done here:
https://xenomai.org/pipermail/xenomai/2015-December/thread.html

-- 
					    Gilles.
https://click-hack.org



More information about the Xenomai mailing list