]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scatterlist: allow limited chaining without ARCH_HAS_SG_CHAIN
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Aug 2015 16:15:11 +0000 (18:15 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 17 Aug 2015 14:12:51 +0000 (08:12 -0600)
commit10c95ed9aa2970e05fedb4ac8b3ce1b934dab17b
tree1d95c738627ea9d01c90e831a5676766458444c0
parent0048b4837affd153897ed1222283492070027aa9
scatterlist: allow limited chaining without ARCH_HAS_SG_CHAIN

There are a couple of uses of struct scatterlist that never go to
the dma_map_sg() helper and thus don't care about ARCH_HAS_SG_CHAIN
which indicates that we can map chained S/G list.

The most important one is the crypto code, which currently has
to open code a few helpers to always allow chaining.  This patch
removes a few #ifdef ARCH_HAS_SG_CHAIN statements so that we can
switch the crypto code to these common helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/scatterlist.h
lib/scatterlist.c