diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-03-10 20:32:05 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 10:12:48 +0200 |
commit | 57a35dfb522c8bbac622d49f5217906f9b5eceb0 (patch) | |
tree | 8c302951e78d39790a7417cebcc5f27ba10f25a6 /fs/ceph | |
parent | 51b10f3fe446f536b6edf90ce6941882033dd93b (diff) | |
download | op-kernel-dev-57a35dfb522c8bbac622d49f5217906f9b5eceb0.zip op-kernel-dev-57a35dfb522c8bbac622d49f5217906f9b5eceb0.tar.gz |
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/cache.c b/fs/ceph/cache.c index 3781f72..797cc81 100644 --- a/fs/ceph/cache.c +++ b/fs/ceph/cache.c @@ -71,7 +71,7 @@ static const struct fscache_cookie_def ceph_fscache_fsid_object_def = { .get_key = ceph_fscache_session_get_key, }; -int ceph_fscache_register(void) +int __init ceph_fscache_register(void) { return fscache_register_netfs(&ceph_cache_netfs); } |