fixed kernel compilation warnings
Merge pull request #2167 from ilya-lavrenov:tapi_kern_warn