]> git.baikalelectronics.ru Git - kernel.git/commit
tools/testing/scatterlist: Fix test to compile and run
authorMaor Gottlieb <maorg@nvidia.com>
Sun, 15 Nov 2020 12:06:23 +0000 (14:06 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 18 Nov 2020 00:02:20 +0000 (20:02 -0400)
commit3c58dd699bfa1d0970596689bad321458f7625be
tree5b4e911c9db9ab7dc194733ad31f82988aa57c78
parentd463cdfedf48ecfe8483fb3a7ae12659ecaff59d
tools/testing/scatterlist: Fix test to compile and run

Add missing define of ALIGN_DOWN to make the test build and run.  In
addition, __sg_alloc_table_from_pages now support unaligned maximum
segment, so adapt the test result accordingly.

Fixes: 474fcb261a9a ("lib/scatterlist: Add support in dynamic allocation of SG table from pages")
Link: https://lore.kernel.org/r/20201115120623.139113-1-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/scatterlist/linux/mm.h
tools/testing/scatterlist/main.c