tiny header file cleanup

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>
move dump_function into dump.c

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>