Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

For some reason, only the little-endian flavor of
powerpc provided the zero_bytemask() implementation.

Reported-by: Michal Sojka <sojkam1@fel.cvut.cz>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>

+5
+5
arch/powerpc/include/asm/word-at-a-time.h
··· 40 40 return (val + c->high_bits) & ~rhs; 41 41 } 42 42 43 + static inline unsigned long zero_bytemask(unsigned long mask) 44 + { 45 + return ~1ul << __fls(mask); 46 + } 47 + 43 48 #else 44 49 45 50 #ifdef CONFIG_64BIT