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.

sh: Default to 4-byte alignment for SLUB objects.

Slub currently defaults to 8-byte alignment for the kmalloc
and slab minalign values, where 4 will suffice. In the slab
case BYTES_PER_WORD == 4 already, so defining the minalign
values outright doesn't cause any regressions there either.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Paul Mundt and committed by
Paul Mundt
cbd2d9d8 f11b71e6

+7
+7
include/asm-sh/page.h
··· 151 151 #define __HAVE_ARCH_GATE_AREA 152 152 #endif 153 153 154 + /* 155 + * Slub defaults to 8-byte alignment, we're only interested in 4. 156 + * Slab defaults to BYTES_PER_WORD, which ends up being the same anyways. 157 + */ 158 + #define ARCH_KMALLOC_MINALIGN 4 159 + #define ARCH_SLAB_MINALIGN 4 160 + 154 161 #endif /* __KERNEL__ */ 155 162 #endif /* __ASM_SH_PAGE_H */