From b2fbfc8cdd4ce4bf7d22e55695a4cc7e707c9ef3 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 24 Oct 2016 14:46:26 +0200 Subject: 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 --- ioctl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ioctl.h') 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 #endif +/* We don't want to include entire kerncompat.h */ +#ifndef BUILD_ASSERT +#define BUILD_ASSERT(x) +#endif + #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_VOL_NAME_MAX 255 -- cgit v1.2.3