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)
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

Simple merge
Simple merge