path: root/ioctl.h
diff options
authorDavid Sterba <>2016-10-24 14:46:26 +0200
committerDavid Sterba <>2016-10-25 14:28:36 +0200
commitb2fbfc8cdd4ce4bf7d22e55695a4cc7e707c9ef3 (patch)
tree36e203693b9f96ab5e78823436b4c987272b2991 /ioctl.h
parent36d02f3eb807e86c3b06ad78a9c99ddef2021076 (diff)
btrfs-progs: ioctl: fix build failure if BUILD_ASSERT is not defined
The build fails if ioctl.h is included without kerncompat.h which defines BUILD_ASSERT, as reported. The proposed patches add kerncompat.h but I don't want to pull that header via ioctl.h, so the fix will provide an empty macro instead. Reported-by: Eric Sandeen <> Reported-by: Sergei Trofimovich <> Reported-by: Mikhail Pukhlikov <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ioctl.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index 238e7ef1..cdfb8882 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -30,6 +30,11 @@ extern "C" {
#define __user
+/* We don't want to include entire kerncompat.h */
+#define BUILD_ASSERT(x)
#define BTRFS_IOCTL_MAGIC 0x94
#define BTRFS_VOL_NAME_MAX 255