提交 f674ef7b 编写于 作者: J Jim Kukunas 提交者: NeilBrown

lib/raid6: fix test program build

<linux/module.h> drags in headers which are not visible to userspace,
thus breaking the build for the test program.
Signed-off-by: NJim Kukunas <james.t.kukunas@linux.intel.com>
Signed-off-by: NNeilBrown <neilb@suse.de>
上级 ea4d26ae
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
*/ */
#include <linux/raid/pq.h> #include <linux/raid/pq.h>
#include <linux/module.h>
#ifndef __KERNEL__ #ifndef __KERNEL__
#include <sys/mman.h> #include <sys/mman.h>
#include <stdio.h> #include <stdio.h>
#else #else
#include <linux/module.h>
#include <linux/gfp.h> #include <linux/gfp.h>
#if !RAID6_USE_EMPTY_ZERO_PAGE #if !RAID6_USE_EMPTY_ZERO_PAGE
/* In .bss so it's zeroed */ /* In .bss so it's zeroed */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册