From: Herbert Xu Date: Mon, 1 Jun 2015 08:22:03 +0000 (+0800) Subject: crypto: scatterwalk - Hide PageSlab call to optimise away flush_dcache_page X-Git-Tag: omap-for-v4.2/fixes-rc1^2~164^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=160544075f2a4028209721723a51f16add7b08b9;p=pandora-kernel.git crypto: scatterwalk - Hide PageSlab call to optimise away flush_dcache_page On architectures where flush_dcache_page is not needed, we will end up generating all the code up to the PageSlab call. This is because PageSlab operates on a volatile pointer and thus cannot be optimised away. This patch works around this by checking whether flush_dcache_page is needed before we call PageSlab which then allows PageSlab to be compiled awy. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed