diff options
author | Kai Kang <kai.kang@windriver.com> | 2018-12-13 09:14:11 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-14 17:10:59 +0000 |
commit | e66a9c7506f55a43911c1be9068a8fddbe8ca30f (patch) | |
tree | 79fef4ef411164980f17f80556440b3eec176eda /meta | |
parent | 53d8896c5bc4d143f7369b4140622ff16f84391c (diff) | |
download | poky-e66a9c7506f55a43911c1be9068a8fddbe8ca30f.tar.gz |
lttng-tools: fix compile error for x32
Fix build error of src/common/utils.c for x32:
| .../src/common/utils.c: Assembler messages:
| .../src/common/utils.c:1026: Error: register type mismatch for `bsr'
| .../src/common/utils.c:1028: Error: operand type mismatch for `movq'
| make[3]: *** [utils.lo] Error 1
[YOCTO #13081]
(From OE-Core rev: db9c892eb1697e3ba3c17eabf59b007c0cf3ff33)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/x32.patch | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/x32.patch b/meta/recipes-kernel/lttng/lttng-tools/x32.patch index b1bb8e4930..42cebf94ac 100644 --- a/meta/recipes-kernel/lttng/lttng-tools/x32.patch +++ b/meta/recipes-kernel/lttng/lttng-tools/x32.patch | |||
@@ -1,11 +1,31 @@ | |||
1 | Fix build for x32 | 1 | Fix build for x32 |
2 | 2 | ||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | 3 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> |
5 | 4 | ||
6 | --- lttng-tools-2.6.0/src/bin/lttng/utils.c~ 2015-01-26 18:17:15.000000000 +0100 | 5 | Fix build error of src/common/utils.c for x32. |
7 | +++ lttng-tools-2.6.0/src/bin/lttng/utils.c 2015-07-30 19:45:25.632045712 +0200 | 6 | |
8 | @@ -130,7 +130,7 @@ | 7 | Upstream-Status: Submitted [https://github.com/lttng/lttng-tools/pull/150] |
8 | |||
9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
10 | |||
11 | diff --git a/src/bin/lttng/utils.c b/src/bin/lttng/utils.c | ||
12 | index 0e96ef0c..5c79c8c7 100644 | ||
13 | --- a/src/bin/lttng/utils.c | ||
14 | +++ b/src/bin/lttng/utils.c | ||
15 | @@ -158,7 +158,7 @@ unsigned int fls_u32(uint32_t x) | ||
16 | #define HAS_FLS_U32 | ||
17 | #endif | ||
18 | |||
19 | -#if defined(__x86_64) | ||
20 | +#if defined(__x86_64) && !defined(__ILP32__) | ||
21 | static inline | ||
22 | unsigned int fls_u64(uint64_t x) | ||
23 | { | ||
24 | diff --git a/src/common/utils.c b/src/common/utils.c | ||
25 | index 08139e5e..3c389981 100644 | ||
26 | --- a/src/common/utils.c | ||
27 | +++ b/src/common/utils.c | ||
28 | @@ -1223,7 +1223,7 @@ static inline unsigned int fls_u32(uint32_t x) | ||
9 | #define HAS_FLS_U32 | 29 | #define HAS_FLS_U32 |
10 | #endif | 30 | #endif |
11 | 31 | ||