From 67fe2b36f1c8288e53cc90f1040b919cd184bdeb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 14 Jan 2020 14:43:02 +0800 Subject: [PATCH] libcephfs: add missing declaration of ceph_getaddrs() this function was added by df507cde8d. but the declaration was not added to the header file. this change silences following warning: build/src/pybind/cephfs/pyrex/cephfs.c:6647:25: warning: implicit declaration of function 'ceph_getaddrs'; did you mean 'ceph_getxattr'? [-Wimplicit-function-declaration] __pyx_v_ret = ceph_getaddrs(__pyx_v_self->cluster, (&__pyx_v_addrs)); ^~~~~~~~~~~~~ ceph_getxattr Signed-off-by: Kefu Chai --- src/include/cephfs/libcephfs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index a94d20bc07b7..d574aee3700a 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -355,6 +355,16 @@ int ceph_release(struct ceph_mount_info *cmount); */ void ceph_shutdown(struct ceph_mount_info *cmount); +/** + * Return associated client addresses + * + * @param cmount the mount handle + * @param addrs the output addresses + * @returns 0 on success, a negative error code on failure + * @note the returned addrs should be free by the caller + */ +int ceph_getaddrs(struct ceph_mount_info *cmount, char** addrs); + /** * Get a global id for current instance * -- 2.47.3