提交 0a2ce2ff 编写于 作者: D David Howells 提交者: Linus Torvalds

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: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b4412323
......@@ -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
/*****************************************************************************/
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册