Skip to contentSkip to conversation

btrfs-progs: Fix bad kernel header non-flat include case

PATCH In review Qu Wenruo 2 participants 2 messages Apr 8, 2020 – Apr 16, 2020 Btrfs file system

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

PATCH 1/1 btrfs-progs: Fix bad kernel header non-flat include case

If we're compiling using system header, we should include <btrfs/crc32c.h> other than "btrfs/crc32.h".

Fixes 2efe160bc757 ("btrfs-progs: move name hashing functions to ctree.h and delete hash.h")
---
 ctree.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ctree.h +1 -1
index 9d69fa946079..df830956fdb8 100644
@@ -38,7 +38,7 @@
 #include <btrfs/extent_io.h>
 #include <btrfs/ioctl.h>
 #include <btrfs/sizes.h>
-#include "btrfs/crc32c.h"
+#include <btrfs/crc32c.h>
 #endif /* BTRFS_FLAT_INCLUDES */
 
 struct btrfs_root;
Signature · 1 line
2.26.0
#1 lore raw
Quoted 5 lines · Qu Wenruo

If we're compiling using system header, we should include <btrfs/crc32c.h> other than "btrfs/crc32.h".

Fixes 2efe160bc757 ("btrfs-progs: move name hashing functions to ctree.h and delete hash.h")

Added to devel, thanks.