Use static array for parsers
[petitboot] / discover / parser-utils.h
index 781867c4c22fe496f7d54f94991aff7b61e7597b..fe28b7bd74d7adfd100f011649fdbf27f17aca24 100644 (file)
@@ -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);