Skip to contentSkip to conversation

btrfs-progs: fix build for programs including ioctl.h

PATCH In review Eric Sandeen 1 participant 3 messages Oct 13, 2016 – Oct 28, 2016 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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
index a7235c0..abea7ed 100644
@@ -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
#1 lore raw
Quoted 6 lines · Eric Sandeen

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.

Ping?

-Eric

Quoted 26 lines

---

ioctl.h +6 -1
index a7235c0..abea7ed 100644
@@ -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

#2 lore raw
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.h which now calls BUILD_ASSERT(), which is defined in kerncompat.h, which was not included in the ioctl.h header file.

Ping?

Oh sorry I see it's in, I had searched by author and missed it.

Thanks,
-Eric