kernel/relay.c: make functions static