summaryrefslogtreecommitdiffstats
path: root/discover/parser-utils.h
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-16 22:06:03 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-16 22:16:41 -0700
commit7c5e552c210b38a06ed9fbb99418b62e20978666 (patch)
treed8973628338cb604eb3032c7b6d36daca70d8435 /discover/parser-utils.h
parent54f94570b65095c5b9251981956102d3f2864f90 (diff)
downloadtalos-petitboot-7c5e552c210b38a06ed9fbb99418b62e20978666.tar.gz
talos-petitboot-7c5e552c210b38a06ed9fbb99418b62e20978666.zip
Use static array for parsers
Change the parser structure array implementation from using an array in a seperate parsers section to a static array of pointers in parser.c. Parser priority is now set by the position in the new parsers array. Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/parser-utils.h')
-rw-r--r--discover/parser-utils.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/discover/parser-utils.h b/discover/parser-utils.h
index 781867c..fe28b7b 100644
--- a/discover/parser-utils.h
+++ b/discover/parser-utils.h
@@ -8,16 +8,13 @@
#define artwork_pathname(file) (PKG_SHARE_DIR "/artwork/" file)
-#define define_parser(__name, __priority, __parse_fn) \
+#define define_parser(__name, __parse_fn) \
struct parser \
- __attribute__((unused, section("parsers"))) \
__ ## __name ## _parser = { \
.name = #__name, \
- .priority = __priority, \
.parse = __parse_fn, \
};
-
void device_add_boot_option(struct device *device,
struct boot_option *boot_option);
OpenPOWER on IntegriCloud