diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-02-21 07:45:59 +0000 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-03-10 14:58:26 +0100 |
commit | 00962adc49f43dd55ffb2e1b6f296ef7272ff386 (patch) | |
tree | 999c3d188ad1783e313d507388d15e67d9bd691b | |
parent | 370e0f68e65d36f64a4e77700fd5cd3044c74cdc (diff) | |
download | meta-raspberrypi-00962adc49f43dd55ffb2e1b6f296ef7272ff386.tar.gz |
userland: Drop extern inline patches
Not needed since the issues have been fixed differently upstream
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 0 insertions, 131 deletions
diff --git a/recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch b/recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch deleted file mode 100644 index ebeefd3..0000000 --- a/recipes-graphics/userland/userland/0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From 58e03d60603baabf63137cdc81ed774cc94d26d6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 6 Feb 2016 11:00:25 -0800 | ||
4 | Subject: [PATCH 01/13] Fix VCOS_INLINE_DECL to not use extern inlines in | ||
5 | declarations | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | interface/vcos/pthreads/vcos_platform_types.h | 2 +- | ||
10 | interface/vcos/vcos_types.h | 4 ++-- | ||
11 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/interface/vcos/pthreads/vcos_platform_types.h b/interface/vcos/pthreads/vcos_platform_types.h | ||
14 | index 17b422d..64fb381 100644 | ||
15 | --- a/interface/vcos/pthreads/vcos_platform_types.h | ||
16 | +++ b/interface/vcos/pthreads/vcos_platform_types.h | ||
17 | @@ -61,7 +61,7 @@ vcos_pthreads_logging_assert(const char *file, const char *func, unsigned int li | ||
18 | #define VCOS_ASSERT_MSG(...) ((VCOS_ASSERT_LOGGING && !VCOS_ASSERT_LOGGING_DISABLE) ? vcos_pthreads_logging_assert(__FILE__, __func__, __LINE__, __VA_ARGS__) : (void)0) | ||
19 | |||
20 | #define VCOS_INLINE_BODIES | ||
21 | -#define VCOS_INLINE_DECL extern __inline__ | ||
22 | +#define VCOS_INLINE_DECL extern | ||
23 | #define VCOS_INLINE_IMPL static __inline__ | ||
24 | |||
25 | #ifdef __cplusplus | ||
26 | diff --git a/interface/vcos/vcos_types.h b/interface/vcos/vcos_types.h | ||
27 | index 6feb4d2..e64fd99 100644 | ||
28 | --- a/interface/vcos/vcos_types.h | ||
29 | +++ b/interface/vcos/vcos_types.h | ||
30 | @@ -121,10 +121,10 @@ typedef enum | ||
31 | #if defined(NDEBUG) | ||
32 | |||
33 | #ifdef __GNUC__ | ||
34 | -# define VCOS_INLINE_DECL extern __inline__ | ||
35 | +# define VCOS_INLINE_DECL extern | ||
36 | # define VCOS_INLINE_IMPL static __inline__ | ||
37 | #else | ||
38 | -# define VCOS_INLINE_DECL static _VCOS_INLINE /* declare a func */ | ||
39 | +# define VCOS_INLINE_DECL extern | ||
40 | # define VCOS_INLINE_IMPL static _VCOS_INLINE /* implement a func inline */ | ||
41 | #endif | ||
42 | |||
43 | -- | ||
44 | 2.7.1 | ||
45 | |||
diff --git a/recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch b/recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch deleted file mode 100644 index 4d508d2..0000000 --- a/recipes-graphics/userland/userland/0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | From 7c07db6c640ec4dfc6baec23f86c7b312028c9c6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 23 Aug 2015 13:41:33 -0700 | ||
4 | Subject: [PATCH 04/13] vcos_platform_types: Dont use extern inline with clang | ||
5 | |||
6 | Its very gcc specific implementation here in this code, we cant use | ||
7 | it with clang as such, so we will use static inline instead which is | ||
8 | common across gcc and clang starting c99 std onwards | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | interface/vcos/pthreads/vcos_platform_types.h | 4 ---- | ||
13 | interface/vcos/vcos_timer.h | 5 ----- | ||
14 | interface/vcos/vcos_types.h | 2 +- | ||
15 | 3 files changed, 1 insertion(+), 10 deletions(-) | ||
16 | |||
17 | diff --git a/interface/vcos/pthreads/vcos_platform_types.h b/interface/vcos/pthreads/vcos_platform_types.h | ||
18 | index 64fb381..6ebcaad 100644 | ||
19 | --- a/interface/vcos/pthreads/vcos_platform_types.h | ||
20 | +++ b/interface/vcos/pthreads/vcos_platform_types.h | ||
21 | @@ -60,10 +60,6 @@ vcos_pthreads_logging_assert(const char *file, const char *func, unsigned int li | ||
22 | |||
23 | #define VCOS_ASSERT_MSG(...) ((VCOS_ASSERT_LOGGING && !VCOS_ASSERT_LOGGING_DISABLE) ? vcos_pthreads_logging_assert(__FILE__, __func__, __LINE__, __VA_ARGS__) : (void)0) | ||
24 | |||
25 | -#define VCOS_INLINE_BODIES | ||
26 | -#define VCOS_INLINE_DECL extern | ||
27 | -#define VCOS_INLINE_IMPL static __inline__ | ||
28 | - | ||
29 | #ifdef __cplusplus | ||
30 | } | ||
31 | #endif | ||
32 | diff --git a/interface/vcos/vcos_timer.h b/interface/vcos/vcos_timer.h | ||
33 | index bdfa657..1de2d46 100644 | ||
34 | --- a/interface/vcos/vcos_timer.h | ||
35 | +++ b/interface/vcos/vcos_timer.h | ||
36 | @@ -76,7 +76,6 @@ VCOSPRE_ VCOS_STATUS_T VCOSPOST_ vcos_timer_init(void); | ||
37 | * @param context context passed to expiration routine | ||
38 | * | ||
39 | */ | ||
40 | -VCOS_INLINE_DECL | ||
41 | VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer, | ||
42 | const char *name, | ||
43 | void (*expiration_routine)(void *context), | ||
44 | @@ -91,24 +90,20 @@ VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer, | ||
45 | * @param timer timer handle | ||
46 | * @param delay Delay to wait for, in ms | ||
47 | */ | ||
48 | -VCOS_INLINE_DECL | ||
49 | void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay); | ||
50 | |||
51 | /** Stop an already running timer. | ||
52 | * | ||
53 | * @param timer timer handle | ||
54 | */ | ||
55 | -VCOS_INLINE_DECL | ||
56 | void vcos_timer_cancel(VCOS_TIMER_T *timer); | ||
57 | |||
58 | /** Stop a timer and restart it. | ||
59 | * @param timer timer handle | ||
60 | * @param delay delay in ms | ||
61 | */ | ||
62 | -VCOS_INLINE_DECL | ||
63 | void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay); | ||
64 | |||
65 | -VCOS_INLINE_DECL | ||
66 | void vcos_timer_delete(VCOS_TIMER_T *timer); | ||
67 | |||
68 | #ifdef __cplusplus | ||
69 | diff --git a/interface/vcos/vcos_types.h b/interface/vcos/vcos_types.h | ||
70 | index e64fd99..7d86742 100644 | ||
71 | --- a/interface/vcos/vcos_types.h | ||
72 | +++ b/interface/vcos/vcos_types.h | ||
73 | @@ -120,7 +120,7 @@ typedef enum | ||
74 | |||
75 | #if defined(NDEBUG) | ||
76 | |||
77 | -#ifdef __GNUC__ | ||
78 | +#if defined(__GNUC__) && !defined(__clang__) | ||
79 | # define VCOS_INLINE_DECL extern | ||
80 | # define VCOS_INLINE_IMPL static __inline__ | ||
81 | #else | ||
82 | -- | ||
83 | 2.7.1 | ||
84 | |||
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb index 4eb67fe..accc707 100644 --- a/recipes-graphics/userland/userland_git.bb +++ b/recipes-graphics/userland/userland_git.bb | |||
@@ -20,10 +20,8 @@ SRCREV = "748b2ba6112435063352d72f48d1d6dcc124bd6f" | |||
20 | 20 | ||
21 | SRC_URI = "\ | 21 | SRC_URI = "\ |
22 | git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ | 22 | git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ |
23 | file://0001-Fix-VCOS_INLINE_DECL-to-not-use-extern-inlines-in-de.patch \ | ||
24 | file://0002-set-VMCS_INSTALL_PREFIX-to-usr.patch \ | 23 | file://0002-set-VMCS_INSTALL_PREFIX-to-usr.patch \ |
25 | file://0003-cmake-generate-and-install-pkgconfig-files.patch \ | 24 | file://0003-cmake-generate-and-install-pkgconfig-files.patch \ |
26 | file://0004-vcos_platform_types-Dont-use-extern-inline-with-clan.patch \ | ||
27 | file://0005-Allow-applications-to-set-next-resource-handle.patch \ | 25 | file://0005-Allow-applications-to-set-next-resource-handle.patch \ |
28 | file://0006-wayland-Add-support-for-the-Wayland-winsys.patch \ | 26 | file://0006-wayland-Add-support-for-the-Wayland-winsys.patch \ |
29 | file://0007-wayland-Add-Wayland-example.patch \ | 27 | file://0007-wayland-Add-Wayland-example.patch \ |