We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71056ee commit 6d15571Copy full SHA for 6d15571
src/mdio/mdio.h
@@ -57,7 +57,7 @@ struct cmd {
57
58
// Derived from https://stackoverflow.com/a/4152185
59
#define DEFINE_CMD(_name, _exec) \
60
- __attribute__((externally_visible, section(".cmd_registry"), aligned(__alignof__(struct cmd)) )) \
+ __attribute__((used, section(".cmd_registry"), aligned(__alignof__(struct cmd)) )) \
61
struct cmd _exec ## _cmd = { .name = _name, .exec = _exec }
62
63
extern struct cmd cmds_start;
0 commit comments