This fixes the errors btrfs-list.c: In function 'ino_resolve': btrfs-list.c:506: error: dereferencing pointer 'sh' does break strict-aliasing rules btrfs-list.c:504: error: dereferencing pointer 'sh' does break strict-aliasing rules btrfs-list.c:502: note: initialized from here
when building with gcc version 4.4.4 (Debian 4.4.4-6). Signed-off-by: Sage Weil <s...@newdream.net> --- ioctl.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ioctl.h b/ioctl.h index 5a03317..4a850ff 100644 --- a/ioctl.h +++ b/ioctl.h @@ -87,7 +87,7 @@ struct btrfs_ioctl_search_header { __u64 offset; __u32 type; __u32 len; -}; +} __attribute__((__may_alias__)); #define BTRFS_SEARCH_ARGS_BUFSIZE (4096 - sizeof(struct btrfs_ioctl_search_key)) /* -- 1.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html