fs/kernel: -O3 fixes

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
Linaro -o3 warning fixes....were a lot (thanks thicklizard for some fixes)

Signed-off-by: Lens-F <tnoah12@gmail.com>