From: Sage Weil <sage@newdream.net>
To: linux-btrfs@vger.kernel.org, chris.mason@oracle.com
Cc: Sage Weil <sage@newdream.net>
Subject: [PATCH] btrfs-progs: ioctl: add may_alias to btrfs_ioctl_search_header
Date: Mon, 1 Nov 2010 09:34:20 -0700 [thread overview]
Message-ID: <1288629262-5405-1-git-send-email-sage@newdream.net> (raw)
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 <sage@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
next reply other threads:[~2010-11-01 16:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 16:34 Sage Weil [this message]
2010-11-01 16:34 ` [PATCH v2] btrfs-progs: btrfs: implement 'start-sync' and 'wait-sync' commands Sage Weil
2010-11-02 18:58 ` Goffredo Baroncelli
2010-11-02 21:56 ` Sage Weil
2010-11-03 6:13 ` Goffredo Baroncelli
2010-11-03 11:49 ` Hugo Mills
2010-11-01 16:34 ` [PATCH v2] btrfs-progs: btrfs: implement async option for snapshot command Sage Weil
2010-11-01 18:51 ` David Nicol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1288629262-5405-1-git-send-email-sage@newdream.net \
--to=sage@newdream.net \
--cc=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.