Commit d9110554 authored by Chris Metcalf's avatar Chris Metcalf Committed by Greg Kroah-Hartman

arch/powerpc: provide zero_bytemask() for big-endian

commit 7a5692e6 upstream.

For some reason, only the little-endian flavor of
powerpc provided the zero_bytemask() implementation.
Reported-by: default avatarMichal Sojka <sojkam1@fel.cvut.cz>
Acked-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarChris Metcalf <cmetcalf@ezchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fa66daa2
......@@ -40,6 +40,11 @@ static inline bool has_zero(unsigned long val, unsigned long *data, const struct
return (val + c->high_bits) & ~rhs;
}
static inline unsigned long zero_bytemask(unsigned long mask)
{
return ~1ul << __fls(mask);
}
#else
#ifdef CONFIG_64BIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment