libceph, ceph: add __init attribution to init funcitons
Add __init attribution to the functions which are called only once during initiating/registering operations and deleting unnecessary symbol exports. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:

committed by
Ilya Dryomov

parent
51b10f3fe4
commit
57a35dfb52
@@ -347,10 +347,12 @@ struct key_type key_type_ceph = {
|
||||
.destroy = ceph_key_destroy,
|
||||
};
|
||||
|
||||
int ceph_crypto_init(void) {
|
||||
int __init ceph_crypto_init(void)
|
||||
{
|
||||
return register_key_type(&key_type_ceph);
|
||||
}
|
||||
|
||||
void ceph_crypto_shutdown(void) {
|
||||
void ceph_crypto_shutdown(void)
|
||||
{
|
||||
unregister_key_type(&key_type_ceph);
|
||||
}
|
||||
|
Reference in New Issue
Block a user