aboutsummaryrefslogtreecommitdiffstats
path: root/raid6.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-08-14 16:16:44 -0700
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:41:11 +0200
commit0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c (patch)
treef78fe171e259c890ee7be26946bb589a4c2d16d2 /raid6.c
parent2a505d6c583bf68b47ba6d8e8ccbb42f76060e72 (diff)
downloadbtrfs-progs-0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c.tar.gz
btrfs-progs-0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c.tar.xz
btrfs-progs-0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c.zip
btrfs-progs: give raid6.c its exported prototypes
raid6.c is built without access to the prototypes of functions it exports. warning: symbol 'raid6_gen_syndrome' was not declared. Should it be static? They could be changed and get out of sync of the exported prototypes without errors. So we add disk-io.h, and its dependency ctree.h, so that it has a chance to check that its exported prototypes are correct. Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> 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 ce0f655..a6ee483 100644
--- a/raid6.c
+++ b/raid6.c
@@ -20,6 +20,8 @@
#include <stdint.h>
#include <unistd.h>
#include "kerncompat.h"
+#include "ctree.h"
+#include "disk-io.h"
/*
* This is the C data type to use