[PATCH 3/5] make some function static