diff options
author | Jeff Layton <jlayton@kernel.org> | 2019-05-06 09:38:47 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-05-07 19:43:05 +0200 |
commit | b726ec972cf2122137fbc47847b4fcc7b3bc2801 (patch) | |
tree | cb991782dce8513dbbcf66c2cdcbb2681ec53d58 /net/ceph/cls_lock_client.c | |
parent | cede185b1ba3118e1912385db4812a37d9e9b205 (diff) | |
download | linux-b726ec972cf2122137fbc47847b4fcc7b3bc2801.tar.gz linux-b726ec972cf2122137fbc47847b4fcc7b3bc2801.tar.bz2 linux-b726ec972cf2122137fbc47847b4fcc7b3bc2801.zip |
libceph: make ceph_pr_addr take an struct ceph_entity_addr pointer
GCC9 is throwing a lot of warnings about unaligned accesses by
callers of ceph_pr_addr. All of the current callers are passing a
pointer to the sockaddr inside struct ceph_entity_addr.
Fix it to take a pointer to a struct ceph_entity_addr instead,
and then have the function make a copy of the sockaddr before
printing it.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph/cls_lock_client.c')
-rw-r--r-- | net/ceph/cls_lock_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/cls_lock_client.c b/net/ceph/cls_lock_client.c index 2105a6eaa66c..4cc28541281b 100644 --- a/net/ceph/cls_lock_client.c +++ b/net/ceph/cls_lock_client.c @@ -271,7 +271,7 @@ static int decode_locker(void **p, void *end, struct ceph_locker *locker) dout("%s %s%llu cookie %s addr %s\n", __func__, ENTITY_NAME(locker->id.name), locker->id.cookie, - ceph_pr_addr(&locker->info.addr.in_addr)); + ceph_pr_addr(&locker->info.addr)); return 0; } |