summaryrefslogtreecommitdiffstats
path: root/src/include/init.h
diff options
context:
space:
mode:
authorMichael Brown2006-04-24 20:31:37 +0200
committerMichael Brown2006-04-24 20:31:37 +0200
commit832e86246b37c78466a5a30159bed48ed59eb811 (patch)
treec931cdff0738445ba4b5d432784ac11af323b35a /src/include/init.h
parent(librm_base-1b) is already an offset; no need to apply OFFSET(). (diff)
downloadipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.gz
ipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.xz
ipxe-832e86246b37c78466a5a30159bed48ed59eb811.zip
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
Diffstat (limited to 'src/include/init.h')
-rw-r--r--src/include/init.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/init.h b/src/include/init.h
index 71311bfb3..3708d9235 100644
--- a/src/include/init.h
+++ b/src/include/init.h
@@ -49,12 +49,12 @@ struct init_fn {
#define INIT_RPC 11
/* Macro for creating an initialisation function table entry */
-#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
- static struct init_fn PREFIX_OBJECT(init_fn__) \
- __table ( init_fn, init_order ) = { \
- .init = init_func, \
- .reset = reset_func, \
- .exit = exit_func, \
+#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
+ struct init_fn PREFIX_OBJECT(init_fn__) \
+ __table ( init_fn, init_order ) = { \
+ .init = init_func, \
+ .reset = reset_func, \
+ .exit = exit_func, \
};
/* Function prototypes */