From 4dbf0908feb928be0092c86cd6f20539c39c6c9d Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 13 Mar 2013 15:04:56 -0400 Subject: [PATCH] Fix Linux 3.8 btrfs probe warning Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/btrfs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/instrumentation/events/lttng-module/btrfs.h b/instrumentation/events/lttng-module/btrfs.h index c01a6e0b..56cfce5d 100644 --- a/instrumentation/events/lttng-module/btrfs.h +++ b/instrumentation/events/lttng-module/btrfs.h @@ -67,9 +67,16 @@ struct extent_state; { BTRFS_DATA_RELOC_TREE_OBJECTID, "DATA_RELOC_TREE" }) #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#define show_root_type(obj) \ + obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ + (obj >= BTRFS_ROOT_TREE_OBJECTID && \ + obj <= BTRFS_CSUM_TREE_OBJECTID)) ? __show_root_type(obj) : "-" +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ #define show_root_type(obj) \ obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ (obj <= BTRFS_CSUM_TREE_OBJECTID )) ? __show_root_type(obj) : "-" +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) -- 2.34.1