summaryrefslogtreecommitdiffstats
path: root/net/ceph/crypto.h
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-12-02 16:35:08 +0100
committerIlya Dryomov <idryomov@gmail.com>2016-12-12 23:09:20 +0100
commit6db2304aabb070261ad34923bfd83c43dfb000e3 (patch)
tree676ae16b17bcbceccaa51e4b094c9f568988fb4a /net/ceph/crypto.h
parent2b1e1a7cd0a615d57455567a549f9965023321b5 (diff)
downloadtalos-op-linux-6db2304aabb070261ad34923bfd83c43dfb000e3.tar.gz
talos-op-linux-6db2304aabb070261ad34923bfd83c43dfb000e3.zip
libceph: uninline ceph_crypto_key_destroy()
Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'net/ceph/crypto.h')
-rw-r--r--net/ceph/crypto.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/ceph/crypto.h b/net/ceph/crypto.h
index c33bcafd3829..c4211590b721 100644
--- a/net/ceph/crypto.h
+++ b/net/ceph/crypto.h
@@ -14,19 +14,12 @@ struct ceph_crypto_key {
void *key;
};
-static inline void ceph_crypto_key_destroy(struct ceph_crypto_key *key)
-{
- if (key) {
- kfree(key->key);
- key->key = NULL;
- }
-}
-
int ceph_crypto_key_clone(struct ceph_crypto_key *dst,
const struct ceph_crypto_key *src);
int ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end);
int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end);
int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *in);
+void ceph_crypto_key_destroy(struct ceph_crypto_key *key);
/* crypto.c */
int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt,
OpenPOWER on IntegriCloud