Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libceph: drop ceph_auth_{create,update}_authorizer()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

-34
-6
include/linux/ceph/auth.h
··· 126 126 struct ceph_auth_handshake *auth, 127 127 int peer_type, bool force_new, 128 128 int *proto, int *pref_mode, int *fallb_mode); 129 - extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac, 130 - int peer_type, 131 - struct ceph_auth_handshake *auth); 132 129 void ceph_auth_destroy_authorizer(struct ceph_authorizer *a); 133 - extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac, 134 - int peer_type, 135 - struct ceph_auth_handshake *a); 136 130 int ceph_auth_add_authorizer_challenge(struct ceph_auth_client *ac, 137 131 struct ceph_authorizer *a, 138 132 void *challenge_buf,
-28
net/ceph/auth.c
··· 326 326 } 327 327 EXPORT_SYMBOL(__ceph_auth_get_authorizer); 328 328 329 - int ceph_auth_create_authorizer(struct ceph_auth_client *ac, 330 - int peer_type, 331 - struct ceph_auth_handshake *auth) 332 - { 333 - int ret = 0; 334 - 335 - mutex_lock(&ac->mutex); 336 - if (ac->ops && ac->ops->create_authorizer) 337 - ret = ac->ops->create_authorizer(ac, peer_type, auth); 338 - mutex_unlock(&ac->mutex); 339 - return ret; 340 - } 341 - EXPORT_SYMBOL(ceph_auth_create_authorizer); 342 - 343 329 void ceph_auth_destroy_authorizer(struct ceph_authorizer *a) 344 330 { 345 331 a->destroy(a); 346 332 } 347 333 EXPORT_SYMBOL(ceph_auth_destroy_authorizer); 348 - 349 - int ceph_auth_update_authorizer(struct ceph_auth_client *ac, 350 - int peer_type, 351 - struct ceph_auth_handshake *a) 352 - { 353 - int ret = 0; 354 - 355 - mutex_lock(&ac->mutex); 356 - if (ac->ops && ac->ops->update_authorizer) 357 - ret = ac->ops->update_authorizer(ac, peer_type, a); 358 - mutex_unlock(&ac->mutex); 359 - return ret; 360 - } 361 - EXPORT_SYMBOL(ceph_auth_update_authorizer); 362 334 363 335 int ceph_auth_add_authorizer_challenge(struct ceph_auth_client *ac, 364 336 struct ceph_authorizer *a,