summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Kukunas <james.t.kukunas@linux.intel.com>2012-05-22 13:54:16 +1000
committerNeilBrown <neilb@suse.de>2012-05-22 13:54:16 +1000
commitf674ef7b43881b2ac11f98d6ba2dc5d9dd0dd118 (patch)
treea41283e030cf4ab5513ca99604921b46651eafe8 /lib
parentea4d26ae24e58fbd2c61de9242adab053cb982d8 (diff)
downloadop-kernel-dev-f674ef7b43881b2ac11f98d6ba2dc5d9dd0dd118.zip
op-kernel-dev-f674ef7b43881b2ac11f98d6ba2dc5d9dd0dd118.tar.gz
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: Jim Kukunas <james.t.kukunas@linux.intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/raid6/algos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c
index 8b02f60..f6a0f78 100644
--- a/lib/raid6/algos.c
+++ b/lib/raid6/algos.c
@@ -17,11 +17,11 @@
*/
#include <linux/raid/pq.h>
-#include <linux/module.h>
#ifndef __KERNEL__
#include <sys/mman.h>
#include <stdio.h>
#else
+#include <linux/module.h>
#include <linux/gfp.h>
#if !RAID6_USE_EMPTY_ZERO_PAGE
/* In .bss so it's zeroed */
OpenPOWER on IntegriCloud