powerpc/mm/hash64: Factor out hash preload psize check
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 May 2016 06:46:00 +0000 (16:46 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:37:10 +0000 (22:37 +0100)
commitb9b441d119b8dd9caba4fa9e1997a17ab6fde5ad
tree11fc0d14c4e025bdc28288ddb9f1e350b733f1bb
parentb75812386e3d15dfa1bf6a754d29d99069f9e108
powerpc/mm/hash64: Factor out hash preload psize check

commit 8bbc9b7b001eaab8abf7e9e24edf1bb285c8d825 upstream.

Currently we have a check in hash_preload() against the psize, which is
only included when CONFIG_PPC_MM_SLICES is enabled. We want to expand
this check in a subsequent patch, so factor it out to allow that. As a
bonus it removes the #ifdef in the C code.

Unfortunately we can't put this in the existing CONFIG_PPC_MM_SLICES
block because it would require a forward declaration.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/mm/hash_utils_64.c