From: Ilya Dryomov Date: Thu, 19 Nov 2020 19:00:10 +0000 (+0100) Subject: libceph: drop ceph_auth_{create,update}_authorizer() X-Git-Tag: v5.15~2135^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f0df6cfa325d7106b8a65bc0e02db1086e3f73b;p=platform%2Fkernel%2Flinux-starfive.git libceph: drop ceph_auth_{create,update}_authorizer() Signed-off-by: Ilya Dryomov --- diff --git a/include/linux/ceph/auth.h b/include/linux/ceph/auth.h index 3fbe72e..71b5d48 100644 --- a/include/linux/ceph/auth.h +++ b/include/linux/ceph/auth.h @@ -126,13 +126,7 @@ int __ceph_auth_get_authorizer(struct ceph_auth_client *ac, struct ceph_auth_handshake *auth, int peer_type, bool force_new, int *proto, int *pref_mode, int *fallb_mode); -extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac, - int peer_type, - struct ceph_auth_handshake *auth); void ceph_auth_destroy_authorizer(struct ceph_authorizer *a); -extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac, - int peer_type, - struct ceph_auth_handshake *a); int ceph_auth_add_authorizer_challenge(struct ceph_auth_client *ac, struct ceph_authorizer *a, void *challenge_buf, diff --git a/net/ceph/auth.c b/net/ceph/auth.c index 6b315c8..eb261aa5 100644 --- a/net/ceph/auth.c +++ b/net/ceph/auth.c @@ -326,40 +326,12 @@ out: } EXPORT_SYMBOL(__ceph_auth_get_authorizer); -int ceph_auth_create_authorizer(struct ceph_auth_client *ac, - int peer_type, - struct ceph_auth_handshake *auth) -{ - int ret = 0; - - mutex_lock(&ac->mutex); - if (ac->ops && ac->ops->create_authorizer) - ret = ac->ops->create_authorizer(ac, peer_type, auth); - mutex_unlock(&ac->mutex); - return ret; -} -EXPORT_SYMBOL(ceph_auth_create_authorizer); - void ceph_auth_destroy_authorizer(struct ceph_authorizer *a) { a->destroy(a); } EXPORT_SYMBOL(ceph_auth_destroy_authorizer); -int ceph_auth_update_authorizer(struct ceph_auth_client *ac, - int peer_type, - struct ceph_auth_handshake *a) -{ - int ret = 0; - - mutex_lock(&ac->mutex); - if (ac->ops && ac->ops->update_authorizer) - ret = ac->ops->update_authorizer(ac, peer_type, a); - mutex_unlock(&ac->mutex); - return ret; -} -EXPORT_SYMBOL(ceph_auth_update_authorizer); - int ceph_auth_add_authorizer_challenge(struct ceph_auth_client *ac, struct ceph_authorizer *a, void *challenge_buf,