src/splice-test.c: use memalign instead of aligned_alloc
authorDavid Sterba <dsterba@suse.com>
Tue, 9 Feb 2021 15:57:15 +0000 (16:57 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 28 Feb 2021 13:03:36 +0000 (21:03 +0800)
commit48aa331f2181f298ea76a88ae3d114093057632a
treec698b7a6f0a3a20f4a40bfcb81eff7b7ce1bec36
parentb13284d992aad356705f7616bd8e2d1e27a75294
src/splice-test.c: use memalign instead of aligned_alloc

The build fails on SLE11 as the function aligned_alloc is not
available there. Replace it by memalign that has the same semantics
and is commonly used in fstests code base. aligned_alloc has
additional requirements on the alignment and buffer size but that is
ok as the buffer is defined in multiples of the alignment.

Signed-off-by: David Sterba <dsterba@suse.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/splice-test.c