All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix building eth_p_all demo with Mercury core
@ 2020-09-24  2:58 Vitaly Chikunov
  2020-09-28 16:54 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Vitaly Chikunov @ 2020-09-24  2:58 UTC (permalink / raw)
  To: Jan Kiszka, Xenomai

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@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];
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix building eth_p_all demo with Mercury core
  2020-09-24  2:58 [PATCH] Fix building eth_p_all demo with Mercury core Vitaly Chikunov
@ 2020-09-28 16:54 ` Jan Kiszka
  2020-09-28 17:03   ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2020-09-28 16:54 UTC (permalink / raw)
  To: Vitaly Chikunov, Xenomai

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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix building eth_p_all demo with Mercury core
  2020-09-28 16:54 ` Jan Kiszka
@ 2020-09-28 17:03   ` Jan Kiszka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2020-09-28 17:03 UTC (permalink / raw)
  To: Vitaly Chikunov, Xenomai

On 28.09.20 18:54, Jan Kiszka via Xenomai wrote:
> 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@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
> 

Strictly spoken, this is under "cobalt", originally not intended for
mercury. But nothing speaks against making this compile with any core.

But looking at the code again, the intention was not make it depend on
xenomai-specifics (boilerplate/ancillaries.h) which is now causing the
problem on mercury. Let's rather get rid of namecpy.

Pulling this back, will send a different fix.

Jan

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-28 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24  2:58 [PATCH] Fix building eth_p_all demo with Mercury core Vitaly Chikunov
2020-09-28 16:54 ` Jan Kiszka
2020-09-28 17:03   ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.