aboutsummaryrefslogtreecommitdiffstats
path: root/raid6.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-02-03 10:34:27 -0700
committerChris Mason <chris.mason@fusionio.com>2013-02-03 12:39:16 -0500
commit5ffe6597e708d74c02d72d79ebb4a8fd2181e227 (patch)
tree1205bfca04a0a1892f3101a46d1f10653597db01 /raid6.c
parent4d48b96b280a76f29eb5d5f1578559932f551b2d (diff)
downloadbtrfs-progs-5ffe6597e708d74c02d72d79ebb4a8fd2181e227.tar.gz
btrfs-progs-5ffe6597e708d74c02d72d79ebb4a8fd2181e227.tar.xz
btrfs-progs-5ffe6597e708d74c02d72d79ebb4a8fd2181e227.zip
btrfs-progs: include kerncompat.h in raid6.c, define __attribute_const__
raid6.c was failing to build for Goffredo and me due to __attribute_const__ being undefined. Define it in kerncompat.h and include that; this also makes sure BITS_PER_LONG is defined for raid6.c, prior to this it was not defined, at least in my build. Finally, redefine BITS_PER_LONG in a way that it can be tested in the preprocessor macro. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'raid6.c')
-rw-r--r--raid6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/raid6.c b/raid6.c
index 3a42bdf..ce0f655 100644
--- a/raid6.c
+++ b/raid6.c
@@ -19,6 +19,8 @@
*/
#include <stdint.h>
#include <unistd.h>
+#include "kerncompat.h"
+
/*
* This is the C data type to use
*/