[kernel] eliminate some warnings, more need to be elimiated