btrfs-progs: fix build for programs including ioctl.h
PATCH 1/1 btrfs-progs: fix build for programs including ioctl.h
This was reported when docker failed to build against btrfs-progs v4.8.1.
It includes ioctl.h which now calls BUILD_ASSERT(), which is defined in kerncompat.h, which was not included in the ioctl.h header file.
---
ioctl.h +6 -0
@@ -26,6 +26,12 @@ extern "C" {#include <asm/types.h> #include <linux/ioctl.h> +#if BTRFS_FLAT_INCLUDES +#include "kerncompat.h" +#else +#include <btrfs/kerncompat.h> +#endif /* BTRFS_FLAT_INCLUDES */ +#ifndef __user#define __user#endif
Quoted 6 lines · Eric Sandeen
This was reported when docker failed to build against btrfs-progs v4.8.1.
It includes
ioctl.hwhich now callsBUILD_ASSERT(), which is defined inkerncompat.h, which was not included in theioctl.hheader file.
Ping?
-Eric
Quoted 26 lines
Signed-off-by Eric Sandeen <[email protected]>---
ioctl.h +6
-1@@ -26,6 +26,12 @@ extern "C" {#include <asm/types.h> #include <linux/ioctl.h> +#if BTRFS_FLAT_INCLUDES +#include "kerncompat.h" +#else +#include <btrfs/kerncompat.h> +#endif /* BTRFS_FLAT_INCLUDES */ +#ifndef __user#define __user#endif --To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Eric Sandeen
Quoted 6 lines · Eric Sandeen
This was reported when docker failed to build against btrfs-progs v4.8.1.
It includes
ioctl.hwhich now callsBUILD_ASSERT(), which is defined inkerncompat.h, which was not included in theioctl.hheader file.Ping?
Oh sorry I see it's in, I had searched by author and missed it.
Thanks,
-Eric