All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] rtdm_driver.h fails to build: implicit declaration of smp_mb__before_atomic_dec()
@ 2015-05-19 20:54 Robert Haschke
  2015-05-20  0:13 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Haschke @ 2015-05-19 20:54 UTC (permalink / raw)
  To: xenomai

I'm trying to build Xenomai 2.6.4 on linux 3.18.13 with i-pipe patch for 
3.18.12.
When enabling RTDM support, the compiler throws the following error:

In file included from ../kernel/xenomai/skins/posix/syscall.c:40:0:
../include/xenomai/rtdm/rtdm_driver.h: In function ‘rtdm_context_unlock’:
../include/xenomai/rtdm/rtdm_driver.h:587:2: error: implicit declaration 
of function ‘smp_mb__before_atomic_dec’ 
[-Werror=implicit-function-declaration]
   smp_mb__before_atomic_dec();
   ^
cc1: some warnings being treated as errors

This function became deprecated in kernel 3.16 and was removed in 3.18.

Best, Robert


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

* Re: [Xenomai] rtdm_driver.h fails to build: implicit declaration of smp_mb__before_atomic_dec()
  2015-05-19 20:54 [Xenomai] rtdm_driver.h fails to build: implicit declaration of smp_mb__before_atomic_dec() Robert Haschke
@ 2015-05-20  0:13 ` Gilles Chanteperdrix
  2015-05-20 14:37   ` Lennart Sorensen
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2015-05-20  0:13 UTC (permalink / raw)
  To: Robert Haschke; +Cc: xenomai

On Tue, May 19, 2015 at 10:54:12PM +0200, Robert Haschke wrote:
> I'm trying to build Xenomai 2.6.4 on linux 3.18.13 with i-pipe patch for
> 3.18.12.
> When enabling RTDM support, the compiler throws the following error:
> 
> In file included from ../kernel/xenomai/skins/posix/syscall.c:40:0:
> ../include/xenomai/rtdm/rtdm_driver.h: In function ‘rtdm_context_unlock’:
> ../include/xenomai/rtdm/rtdm_driver.h:587:2: error: implicit declaration of
> function ‘smp_mb__before_atomic_dec’ [-Werror=implicit-function-declaration]
>   smp_mb__before_atomic_dec();
>   ^
> cc1: some warnings being treated as errors

That question again.

Xenomai developers do not have access to a crystal ball or to an
IPOT network. Thus, a released version of Xenomai only supports the
I-pipe patches which were released prior to its release. For this
reason, Xenomai 2.6.4 does not support Linux kernel versions more
recent than 3.14. For more recent releases, use the git repository.


> 
> This function became deprecated in kernel 3.16 and was removed in 3.18.

Ah, maybe this explain this commit then:

https://git.xenomai.org/xenomai-2.6.git/commit/?id=d7f7e99ea19eb0dc13b1e02e633ec53ac9b89475


-- 
					    Gilles.


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

* Re: [Xenomai] rtdm_driver.h fails to build: implicit declaration of smp_mb__before_atomic_dec()
  2015-05-20  0:13 ` Gilles Chanteperdrix
@ 2015-05-20 14:37   ` Lennart Sorensen
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Sorensen @ 2015-05-20 14:37 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Wed, May 20, 2015 at 02:13:22AM +0200, Gilles Chanteperdrix wrote:
> Xenomai developers do not have access to a crystal ball or to an
> IPOT network. Thus, a released version of Xenomai only supports the
> I-pipe patches which were released prior to its release. For this
> reason, Xenomai 2.6.4 does not support Linux kernel versions more
> recent than 3.14. For more recent releases, use the git repository.

A time machine will be the ultimate bug removal tool. :)

-- 
Len Sorensen


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

end of thread, other threads:[~2015-05-20 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 20:54 [Xenomai] rtdm_driver.h fails to build: implicit declaration of smp_mb__before_atomic_dec() Robert Haschke
2015-05-20  0:13 ` Gilles Chanteperdrix
2015-05-20 14:37   ` Lennart Sorensen

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.