Skip to content

Commit 6d15571

Browse files
committed
Use more portable attribute
1 parent 71056ee commit 6d15571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdio/mdio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct cmd {
5757

5858
// Derived from https://stackoverflow.com/a/4152185
5959
#define DEFINE_CMD(_name, _exec) \
60-
__attribute__((externally_visible, section(".cmd_registry"), aligned(__alignof__(struct cmd)) )) \
60+
__attribute__((used, section(".cmd_registry"), aligned(__alignof__(struct cmd)) )) \
6161
struct cmd _exec ## _cmd = { .name = _name, .exec = _exec }
6262

6363
extern struct cmd cmds_start;

0 commit comments

Comments
 (0)