Skip to content

Commit

Permalink
Fix FRV minimum slab/kmalloc alignment
Browse files Browse the repository at this point in the history
> +#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>
  • Loading branch information
David Howells authored and Linus Torvalds committed May 28, 2008
1 parent b441232 commit 0a2ce2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-frv/mem-layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* the slab must be aligned such that load- and store-double instructions don't
* fault if used
*/
#define ARCH_KMALLOC_MINALIGN (sizeof(long) * 2)
#define ARCH_SLAB_MINALIGN (sizeof(long) * 2)
#define ARCH_KMALLOC_MINALIGN 8
#define ARCH_SLAB_MINALIGN 8

/*****************************************************************************/
/*
Expand Down

0 comments on commit 0a2ce2f

Please sign in to comment.