all: remove __exit annotation

This commit is contained in:
Thomas Schoebel-Theuer 2014-04-23 13:16:26 +02:00
parent a989a43ecd
commit 7aebfdf6bb
25 changed files with 23 additions and 33 deletions

View File

@ -670,7 +670,7 @@ int __init init_brick(void)
return 0;
}
void __exit exit_brick(void)
void exit_brick(void)
{
if (nr_table) {
brick_mem_free(nr_table);

View File

@ -672,11 +672,6 @@ extern void brick_thread_stop_nowait(struct task_struct *k);
// init
#ifdef CONFIG_MARS_HAVE_BIGMODULE
#undef __exit
#define __exit /*empty*/
#endif
extern int init_brick(void);
extern void exit_brick(void);

View File

@ -1005,7 +1005,7 @@ int __init init_brick_mem(void)
return 0;
}
void __exit exit_brick_mem(void)
void exit_brick_mem(void)
{
BRICK_INF("deallocating memory...\n");
#ifdef CONFIG_MARS_MEM_PREALLOC

View File

@ -206,11 +206,6 @@ extern void brick_mem_statistics(bool final);
// init
#ifdef CONFIG_MARS_HAVE_BIGMODULE
#undef __exit
#define __exit /*empty*/
#endif
extern int init_brick_mem(void);
extern void exit_brick_mem(void);

View File

@ -504,7 +504,7 @@ int __init init_log_format(void)
return 0;
}
void __exit exit_log_format(void)
void exit_log_format(void)
{
MARS_INF("exit_log_format()\n");
}

View File

@ -355,7 +355,7 @@ int __init init_mars_mapfree(void)
return 0;
}
void __exit exit_mars_mapfree(void)
void exit_mars_mapfree(void)
{
MARS_DBG("exit_mapfree()\n");
if (likely(mf_thread)) {

View File

@ -60,6 +60,6 @@ void mf_get_any_dirty(const char *filename, loff_t *min, loff_t *max, int min_st
int __init init_mars_mapfree(void);
void __exit exit_mars_mapfree(void);
void exit_mars_mapfree(void);
#endif

View File

@ -1190,7 +1190,7 @@ int __init init_mars_aio(void)
return aio_register_brick_type();
}
void __exit exit_mars_aio(void)
void exit_mars_aio(void)
{
MARS_DBG("exit_aio()\n");
aio_unregister_brick_type();

View File

@ -914,7 +914,7 @@ int __init init_mars_bio(void)
return bio_register_brick_type();
}
void __exit exit_mars_bio(void)
void exit_mars_bio(void)
{
MARS_INF("exit_bio()\n");
bio_unregister_brick_type();

View File

@ -1118,7 +1118,7 @@ int __init init_mars_buf(void)
return buf_register_brick_type();
}
void __exit exit_mars_buf(void)
void exit_mars_buf(void)
{
MARS_INF("exit_buf()\n");
buf_unregister_brick_type();

View File

@ -331,7 +331,7 @@ int __init init_mars_check(void)
return check_register_brick_type();
}
void __exit exit_mars_check(void)
void exit_mars_check(void)
{
MARS_INF("exit_check()\n");
check_unregister_brick_type();

View File

@ -779,7 +779,7 @@ int __init init_mars_client(void)
return client_register_brick_type();
}
void __exit exit_mars_client(void)
void exit_mars_client(void)
{
MARS_INF("exit_client()\n");
client_unregister_brick_type();

View File

@ -1019,7 +1019,7 @@ int __init init_mars_copy(void)
return copy_register_brick_type();
}
void __exit exit_mars_copy(void)
void exit_mars_copy(void)
{
MARS_INF("exit_copy()\n");
copy_unregister_brick_type();

View File

@ -209,7 +209,7 @@ int __init init_mars_dummy(void)
return dummy_register_brick_type();
}
void __exit exit_mars_dummy(void)
void exit_mars_dummy(void)
{
MARS_INF("exit_dummy()\n");
dummy_unregister_brick_type();

View File

@ -332,7 +332,7 @@ int __init init_mars(void)
return 0;
}
void __exit exit_mars(void)
void exit_mars(void)
{
MARS_INF("exit_mars()\n");

View File

@ -1178,7 +1178,7 @@ EXPORT_SYMBOL_GPL(if_brick_type);
////////////////// module init stuff /////////////////////////
void __exit exit_mars_if(void)
void exit_mars_if(void)
{
int status;
MARS_INF("exit_if()\n");

View File

@ -1139,7 +1139,7 @@ int __init init_mars_net(void)
return 0;
}
void __exit exit_mars_net(void)
void exit_mars_net(void)
{
mars_net_is_alive = false;
MARS_INF("exit_net()\n");

View File

@ -814,7 +814,7 @@ struct mars_limiter server_limiter = {
};
EXPORT_SYMBOL_GPL(server_limiter);
void __exit exit_mars_server(void)
void exit_mars_server(void)
{
int i;

View File

@ -715,7 +715,7 @@ int __init init_mars_sio(void)
return sio_register_brick_type();
}
void __exit exit_mars_sio(void)
void exit_mars_sio(void)
{
MARS_INF("exit_sio()\n");
sio_unregister_brick_type();

View File

@ -3471,7 +3471,7 @@ int __init init_mars_trans_logger(void)
return trans_logger_register_brick_type();
}
void __exit exit_mars_trans_logger(void)
void exit_mars_trans_logger(void)
{
MARS_INF("exit_trans_logger()\n");
trans_logger_unregister_brick_type();

View File

@ -362,7 +362,7 @@ int __init init_mars_usebuf(void)
return usebuf_register_brick_type();
}
void __exit exit_mars_usebuf(void)
void exit_mars_usebuf(void)
{
MARS_INF("exit_usebuf()\n");
usebuf_unregister_brick_type();

View File

@ -5343,7 +5343,7 @@ static int exit_fn_nr = 0;
void (*_mars_remote_trigger)(void);
EXPORT_SYMBOL_GPL(_mars_remote_trigger);
static void __exit exit_light(void)
static void exit_light(void)
{
MARS_DBG("====================== stopping everything...\n");
// TODO: make this thread-safe.

View File

@ -372,7 +372,7 @@ int __init init_mars_proc(void)
return 0;
}
void __exit exit_mars_proc(void)
void exit_mars_proc(void)
{
MARS_INF("exit_proc()\n");
if (header) {

View File

@ -1902,7 +1902,7 @@ int __init init_sy(void)
return 0;
}
void __exit exit_sy(void)
void exit_sy(void)
{
MARS_INF("exit_sy()\n");
}

View File

@ -103,7 +103,7 @@ int __init init_sy_net(void)
return 0;
}
void __exit exit_sy_net(void)
void exit_sy_net(void)
{
MARS_INF("exit_sy_net()\n");
}