提交 7371a382 编写于 作者: J Jerome Marchand 提交者: Tyler Hicks

ecryptfs: properly mark init functions

Some ecryptfs init functions are not prefixed by __init and thus not
freed after initialization. This patch saved about 1kB in ecryptfs
module.
Signed-off-by: NJerome Marchand <jmarchan@redhat.com>
Signed-off-by: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
上级 f137f150
......@@ -1793,7 +1793,7 @@ struct kmem_cache *ecryptfs_key_tfm_cache;
static struct list_head key_tfm_list;
struct mutex key_tfm_list_mutex;
int ecryptfs_init_crypto(void)
int __init ecryptfs_init_crypto(void)
{
mutex_init(&key_tfm_list_mutex);
INIT_LIST_HEAD(&key_tfm_list);
......
......@@ -86,7 +86,7 @@ static int ecryptfs_threadfn(void *ignored)
return 0;
}
int ecryptfs_init_kthread(void)
int __init ecryptfs_init_kthread(void)
{
int rc = 0;
......
......@@ -473,7 +473,7 @@ int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx,
return rc;
}
int ecryptfs_init_messaging(void)
int __init ecryptfs_init_messaging(void)
{
int i;
int rc = 0;
......
......@@ -500,7 +500,7 @@ static struct miscdevice ecryptfs_miscdev = {
*
* Returns zero on success; non-zero otherwise
*/
int ecryptfs_init_ecryptfs_miscdev(void)
int __init ecryptfs_init_ecryptfs_miscdev(void)
{
int rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册