libceph: make ceph_pr_addr take an struct ceph_entity_addr pointer
authorJeff Layton <jlayton@kernel.org>
Mon, 6 May 2019 13:38:47 +0000 (09:38 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:43:05 +0000 (19:43 +0200)
commitb726ec972cf2122137fbc47847b4fcc7b3bc2801
treecb991782dce8513dbbcf66c2cdcbb2681ec53d58
parentcede185b1ba3118e1912385db4812a37d9e9b205
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>
fs/ceph/debugfs.c
fs/ceph/mdsmap.c
include/linux/ceph/messenger.h
net/ceph/cls_lock_client.c
net/ceph/debugfs.c
net/ceph/messenger.c
net/ceph/mon_client.c
net/ceph/osd_client.c