dect
/
linux-2.6
Archived
13
0
Fork 0

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: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
This commit is contained in:
Jerome Marchand 2010-08-17 17:24:05 +02:00 committed by Tyler Hicks
parent f137f15072
commit 7371a38201
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -86,7 +86,7 @@ out:
return 0;
}
int ecryptfs_init_kthread(void)
int __init ecryptfs_init_kthread(void)
{
int rc = 0;

View File

@ -473,7 +473,7 @@ sleep:
return rc;
}
int ecryptfs_init_messaging(void)
int __init ecryptfs_init_messaging(void)
{
int i;
int rc = 0;

View File

@ -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;