Skip to content

udev rules Wmissing label

Alexey Gladkov edited this page Mar 1, 2023 · 1 revision

-Wmissing-label

Warn when GOTO refers to a LABEL that is unreachable. LABEL with the same value must be after the rule with GOTO.

Problematic code:

ACTION=="add", SUBSYSTEM=="sound", GOTO="point"

or

LABEL="point"
ACTION=="add", SUBSYSTEM=="sound", GOTO="point"

Correct code:

ACTION=="add", SUBSYSTEM=="sound", GOTO="point"
...
LABEL="point"
Clone this wiki locally