Commit efd5d744 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

include/boilerplate: add shorthand for deprecated calls

parent d054cdb5
......@@ -54,4 +54,8 @@
#define __aligned(__n) __attribute__((aligned (__n)))
#endif
#ifndef __deprecated
#define __deprecated __attribute__((__deprecated__))
#endif
#endif /* _BOILERPLATE_COMPILER_H */
......@@ -114,8 +114,7 @@ void rt_print_flush_buffers(void);
void assert_nrt(void);
__attribute__((__deprecated__))
void assert_nrt_fast(void);
__deprecated void assert_nrt_fast(void);
#ifdef __cplusplus
}
......
......@@ -18,6 +18,8 @@
#ifndef _COBALT_WRAPPERS_H
#define _COBALT_WRAPPERS_H
#include <boilerplate/compiler.h>
#define __stringify_1(x...) #x
#define __stringify(x...) __stringify_1(x)
......
......@@ -32,7 +32,7 @@ typedef struct rt_ioregion {
extern "C" {
#endif
__attribute__((__deprecated__))
__deprecated
static inline int rt_io_get_region(RT_IOREGION *iorn,
const char *name,
uint64_t start,
......@@ -43,7 +43,7 @@ static inline int rt_io_get_region(RT_IOREGION *iorn,
return -ENOSYS;
}
__attribute__((__deprecated__))
__deprecated
int rt_io_put_region(RT_IOREGION *iorn)
{
trank_warning("service should be provided by a RTDM driver");
......
......@@ -35,7 +35,7 @@
extern "C" {
#endif
__attribute__((__deprecated__))
__deprecated
static inline int rt_task_notify(RT_TASK *task, rt_sigset_t sigs)
{
trank_warning("in-kernel native API is gone, rebase over RTDM");
......
......@@ -28,7 +28,7 @@
extern "C" {
#endif
__attribute__((__deprecated__))
__deprecated
static inline int rt_timer_set_mode(RTIME nstick)
{
#ifdef CONFIG_XENO_LORES_CLOCK_DISABLED
......
......@@ -18,6 +18,8 @@
#ifndef _XENOMAI_TRANK_TRANK_H
#define _XENOMAI_TRANK_TRANK_H
#include <boilerplate/compiler.h>
#ifdef __XENO_COMPAT__
void warning(const char *fmt, ...);
......@@ -32,8 +34,6 @@ void warning(const char *fmt, ...);
#else /* !__XENO_COMPAT__ */
#include <boilerplate/compiler.h>
#define __CURRENT(call) call
#define COMPAT_DECL(T, P)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment