projects/linux·commit 0a2ce2ff

Fix FRV minimum slab/kmalloc alignment

0a2ce2ff · David Howells <[email protected]> · 2008-05-28 16:49:01 +01:00

> +#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 <[email protected]>
Commit
0a2ce2ffc358da96792d514c1024b72c52be9cc1
Parents
b4412323

Changes

1 files changed · +2 −2

FileStatusAddDelContent
include/asm-frv/mem-layout.hmodified+2−2View file

include/asm-frv/mem-layout.h

View file
diff --git a/include/asm-frv/mem-layout.h b/include/asm-frv/mem-layout.h
index 8a15c90..2947764 100644
--- a/include/asm-frv/mem-layout.h
+++ b/include/asm-frv/mem-layout.h
@@ -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
/*****************************************************************************/
/*