diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-11-02 17:49:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-03 08:21:12 +0000 |
commit | 1ad28364512be087f35b7cac6f6289027c070767 (patch) | |
tree | 0739e795c96e02e8e026e427c3a546ed31a20581 /meta/recipes-support | |
parent | 521b77177dcf504a8c22c46a0d9520b7406f5be5 (diff) | |
download | poky-1ad28364512be087f35b7cac6f6289027c070767.tar.gz |
numactl: upgrade 2.0.13 -> 2.0.14
(From OE-Core rev: a59c246be05ca284fa27df87b5db09a70f527cc2)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/numactl/numactl/0001-numademo-fix-error-on-32bit-system.patch | 100 | ||||
-rw-r--r-- | meta/recipes-support/numactl/numactl_git.bb | 15 |
2 files changed, 7 insertions, 108 deletions
diff --git a/meta/recipes-support/numactl/numactl/0001-numademo-fix-error-on-32bit-system.patch b/meta/recipes-support/numactl/numactl/0001-numademo-fix-error-on-32bit-system.patch deleted file mode 100644 index 506101711a..0000000000 --- a/meta/recipes-support/numactl/numactl/0001-numademo-fix-error-on-32bit-system.patch +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | From 68485f8516884377e54c623b0deff73f97321d96 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Hongzhi.Song" <hongzhi.song@windriver.com> | ||
3 | Date: Thu, 19 Sep 2019 04:32:31 -0400 | ||
4 | Subject: [PATCH] numademo: fix error on 32bit system | ||
5 | |||
6 | Error Info on 32bit: | ||
7 | root@intel-x86:~# numademo -t -e 1M | ||
8 | Configured Nodes does not match available memory nodes | ||
9 | |||
10 | That's because sizeof(long)=4Word, but sizeof(long long)=8Word | ||
11 | on 32bit. So (long long) assigning to (long) maybe cause overflow. | ||
12 | |||
13 | long numa_node_size(int node, long *freep) | ||
14 | { | ||
15 | ... | ||
16 | long sz = numa_node_size64_int(node, &f2); | ||
17 | ~^^~ | ||
18 | return sz; | ||
19 | ... | ||
20 | } | ||
21 | long long numa_node_size64(int node, long long *freep) | ||
22 | ~^^ ^^~ | ||
23 | { | ||
24 | ... | ||
25 | } | ||
26 | |||
27 | Unify the return type of above functions. | ||
28 | |||
29 | Upstream-Status: Accepted [next version is after 2.0.13 or 2.0.14] | ||
30 | [https://github.com/numactl/numactl/commit/a7c4bc790a191d3e42b63850b409c1a72b75a4e1] | ||
31 | Submitted [https://github.com/numactl/numactl/pull/79] | ||
32 | [The first patch was merged but has a error, then the second fix it.] | ||
33 | |||
34 | Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> | ||
35 | --- | ||
36 | libnuma.c | 4 ++-- | ||
37 | numa.h | 2 +- | ||
38 | numademo.c | 2 +- | ||
39 | test/move_pages.c | 2 +- | ||
40 | 4 files changed, 5 insertions(+), 5 deletions(-) | ||
41 | |||
42 | diff --git a/libnuma.c b/libnuma.c | ||
43 | index cac8851..8b5c6aa 100644 | ||
44 | --- a/libnuma.c | ||
45 | +++ b/libnuma.c | ||
46 | @@ -791,10 +791,10 @@ long long numa_node_size64(int node, long long *freep) | ||
47 | |||
48 | make_internal_alias(numa_node_size64); | ||
49 | |||
50 | -long numa_node_size(int node, long *freep) | ||
51 | +long long numa_node_size(int node, long long *freep) | ||
52 | { | ||
53 | long long f2; | ||
54 | - long sz = numa_node_size64_int(node, &f2); | ||
55 | + long long sz = numa_node_size64_int(node, &f2); | ||
56 | if (freep) | ||
57 | *freep = f2; | ||
58 | return sz; | ||
59 | diff --git a/numa.h b/numa.h | ||
60 | index 3a8c543..268fb1d 100644 | ||
61 | --- a/numa.h | ||
62 | +++ b/numa.h | ||
63 | @@ -143,7 +143,7 @@ int numa_preferred(void); | ||
64 | |||
65 | /* Return node size and free memory */ | ||
66 | long long numa_node_size64(int node, long long *freep); | ||
67 | -long numa_node_size(int node, long *freep); | ||
68 | +long long numa_node_size(int node, long long *freep); | ||
69 | |||
70 | int numa_pagesize(void); | ||
71 | |||
72 | diff --git a/numademo.c b/numademo.c | ||
73 | index a720db0..8c56da8 100644 | ||
74 | --- a/numademo.c | ||
75 | +++ b/numademo.c | ||
76 | @@ -301,7 +301,7 @@ int max_node, numnodes; | ||
77 | int get_node_list(void) | ||
78 | { | ||
79 | int a, got_nodes = 0; | ||
80 | - long free_node_sizes; | ||
81 | + long long free_node_sizes; | ||
82 | |||
83 | numnodes = numa_num_configured_nodes(); | ||
84 | node_to_use = (int *)malloc(numnodes * sizeof(int)); | ||
85 | diff --git a/test/move_pages.c b/test/move_pages.c | ||
86 | index d1d8436..f8ff25d 100644 | ||
87 | --- a/test/move_pages.c | ||
88 | +++ b/test/move_pages.c | ||
89 | @@ -26,7 +26,7 @@ int *node_to_use; | ||
90 | int get_node_list() | ||
91 | { | ||
92 | int a, got_nodes = 0, max_node, numnodes; | ||
93 | - long free_node_sizes; | ||
94 | + long long free_node_sizes; | ||
95 | |||
96 | numnodes = numa_num_configured_nodes(); | ||
97 | node_to_use = (int *)malloc(numnodes * sizeof(int)); | ||
98 | -- | ||
99 | 2.23.0 | ||
100 | |||
diff --git a/meta/recipes-support/numactl/numactl_git.bb b/meta/recipes-support/numactl/numactl_git.bb index e45afe9ee8..5640173aa9 100644 --- a/meta/recipes-support/numactl/numactl_git.bb +++ b/meta/recipes-support/numactl/numactl_git.bb | |||
@@ -10,16 +10,15 @@ inherit autotools-brokensep ptest | |||
10 | 10 | ||
11 | LIC_FILES_CHKSUM = "file://README.md;beginline=19;endline=32;md5=f8ff2391624f28e481299f3f677b21bb" | 11 | LIC_FILES_CHKSUM = "file://README.md;beginline=19;endline=32;md5=f8ff2391624f28e481299f3f677b21bb" |
12 | 12 | ||
13 | SRCREV = "5d9f16722e3df49dc618a9f361bd482559695db7" | 13 | SRCREV = "dd6de072c92c892a86e18c0fd0dfa1ba57a9a05d" |
14 | PV = "2.0.13+git${SRCPV}" | 14 | PV = "2.0.14" |
15 | 15 | ||
16 | SRC_URI = "git://github.com/numactl/numactl \ | 16 | SRC_URI = "git://github.com/numactl/numactl \ |
17 | file://Fix-the-test-output-format.patch \ | 17 | file://Fix-the-test-output-format.patch \ |
18 | file://Makefile \ | 18 | file://Makefile \ |
19 | file://run-ptest \ | 19 | file://run-ptest \ |
20 | file://0001-define-run-test-target.patch \ | 20 | file://0001-define-run-test-target.patch \ |
21 | file://0001-numademo-fix-error-on-32bit-system.patch \ | 21 | " |
22 | " | ||
23 | 22 | ||
24 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
25 | 24 | ||