tests/pdx: allow more tests on 32bit build
PATCH 1/1 tests/pdx: allow more tests on 32bit build
The limitation of which tests can be build on 32bit is too strict. Move some tests out of the 64bit explicit region, as they can also be built on 32bits.
Fixes cb50e4033717 ("test/pdx: add PDX compression unit tests")
Reported-by Jan Beulich <[email protected]>
Signed-off-by Roger Pau Monné <[email protected]>
--- tools/tests/pdx/test-pdx.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
tools/tests/pdx/test-pdx.c +11 -11
@@ -77,6 +77,17 @@ int main(int argc, char **argv) }, .compress = true, }, + /* Two ranges with the same high bit set. */ + { + .ranges = { + { .start = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 0, + .end = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 1 }, + { .start = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 3, + .end = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 4 }, + }, + .compress = true, + }, +#endif /* PDX compression, 2 ranges covered by the lower mask. */ { .ranges = {
@@ -132,17 +143,6 @@ int main(int argc, char **argv) }, .compress = true, }, - /* Two ranges with the same high bit set. */ - { - .ranges = { - { .start = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 0, - .end = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 1 }, - { .start = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 3, - .end = (1UL << (51 - PAGE_SHIFT)) + (1 << MAX_ORDER) * 4 }, - }, - .compress = true, - }, -#endif/* AMD Naples Epyc 7281 2 sockets, 8 NUMA nodes. */ { .ranges = {
Signature · 1 line
2.51.0
Quoted 7 lines · Roger Pau Monne
The limitation of which tests can be build on 32bit is too strict. Move some tests out of the 64bit explicit region, as they can also be built on 32bits.
Fixes cb50e4033717 ("test/pdx: add PDX compression unit tests")Reported-by Jan Beulich <[email protected]>Signed-off-by Roger Pau Monné <[email protected]>
Reviewed-by Jan Beulich <[email protected]>