Преглед изворни кода

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>
David Howells пре 17 година
родитељ
комит
0a2ce2ffc3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      include/asm-frv/mem-layout.h

+ 2 - 2
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
 
 /*****************************************************************************/
 /*