[PATCH] Fix building eth_p_all demo with Mercury core

Jan Kiszka jan.kiszka at siemens.com
Mon Sep 28 18:54:06 CEST 2020


On 24.09.20 04:58, Vitaly Chikunov wrote:
> Error message:
> 
> In file included from eth_p_all.c:43:
> /usr/include/xenomai/boilerplate/ancillaries.h:56:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__early_panic’
>    56 | void __noreturn __early_panic(const char *fn,
>       |                 ^~~~~~~~~~~~~
> /usr/include/xenomai/boilerplate/ancillaries.h:59:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘___panic’
>    59 | void __noreturn ___panic(const char *fn,
>       |                 ^~~~~~~~
> /usr/include/xenomai/boilerplate/ancillaries.h:63:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__panic’
>    63 | void __noreturn __panic(const char *fn,
>       |                 ^~~~~~~
> 
> Signed-off-by: Vitaly Chikunov <vt at altlinux.org>
> ---
>  demo/posix/cobalt/eth_p_all.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/demo/posix/cobalt/eth_p_all.c b/demo/posix/cobalt/eth_p_all.c
> index 91aef9fbd..ad4c54878 100644
> --- a/demo/posix/cobalt/eth_p_all.c
> +++ b/demo/posix/cobalt/eth_p_all.c
> @@ -40,6 +40,7 @@
>  #include <net/if.h>
>  #include <arpa/inet.h>
>  #include <netinet/ether.h>
> +#include <boilerplate/compiler.h>
>  #include <boilerplate/ancillaries.h>
>  
>  char buffer[10*1024];
> 

Thanks, applied.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list