Commit 0a2ce2ffc358da96792d514c1024b72c52be9cc1

Authored by David Howells
Committed by Linus Torvalds
1 parent b4412323cc

Fix FRV minimum slab/kmalloc alignment

> +#define	ARCH_KMALLOC_MINALIGN		(sizeof(long) * 2)
> +#define	ARCH_SLAB_MINALIGN		(sizeof(long) * 2)

This doesn't work if SLAB is selected and slab debugging is enabled as
these are passed to the preprocessor, and the preprocessor doesn't
understand sizeof.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

include/asm-frv/mem-layout.h
... ... @@ -35,8 +35,8 @@
35 35 * the slab must be aligned such that load- and store-double instructions don't
36 36 * fault if used
37 37 */
38   -#define ARCH_KMALLOC_MINALIGN (sizeof(long) * 2)
39   -#define ARCH_SLAB_MINALIGN (sizeof(long) * 2)
  38 +#define ARCH_KMALLOC_MINALIGN 8
  39 +#define ARCH_SLAB_MINALIGN 8
40 40  
41 41 /*****************************************************************************/
42 42 /*