Use PREFIX_OBJECT to give the init_fn table variables meaningful names.

pull/1/head
Michael Brown 2005-04-27 12:08:52 +00:00
parent c8fc121890
commit d2d4978f4f
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ struct init_fn {
/* Macro for creating an initialisation function table entry */ /* Macro for creating an initialisation function table entry */
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \ #define INIT_FN( init_order, init_func, reset_func, exit_func ) \
static struct init_fn init_functions \ static struct init_fn PREFIX_OBJECT(init_fn__) \
__attribute__ (( used, __table_section(init_fn,init_order) )) = { \ __attribute__ (( used, __table_section(init_fn,init_order) )) = { \
.init = init_func, \ .init = init_func, \
.reset = reset_func, \ .reset = reset_func, \