extern int ceph_handle_auth_reply(struct ceph_auth_client *ac,
                                  void *buf, size_t len,
                                  void *reply_buf, size_t reply_len);
-extern int ceph_entity_name_encode(const char *name, void **p, void *end);
+int ceph_auth_entity_name_encode(const char *name, void **p, void *end);
 
 extern int ceph_build_auth(struct ceph_auth_client *ac,
                    void *msg_buf, size_t msg_len);
 
        mutex_unlock(&ac->mutex);
 }
 
-int ceph_entity_name_encode(const char *name, void **p, void *end)
+/*
+ * EntityName, not to be confused with entity_name_t
+ */
+int ceph_auth_entity_name_encode(const char *name, void **p, void *end)
 {
        int len = strlen(name);
 
        for (i = 0; i < num; i++)
                ceph_encode_32(&p, supported_protocols[i]);
 
-       ret = ceph_entity_name_encode(ac->name, &p, end);
+       ret = ceph_auth_entity_name_encode(ac->name, &p, end);
        if (ret < 0)
                goto out;
        ceph_decode_need(&p, end, sizeof(u64), bad);
 
        int ret;
 
        ceph_encode_8_safe(&p, end, 1, e_range);
-       ret = ceph_entity_name_encode(ac->name, &p, end);
+       ret = ceph_auth_entity_name_encode(ac->name, &p, end);
        if (ret < 0)
                return ret;