Kernel: Fix for Toolchain 4.6+

- fix for some warnings being treated as errors.

Signed-off-by: Caio99BR <caiooliveirafarias0@gmail.com>