kernel: gcc patch by graysky2

Signed-off-by: Evan Anderson <evan1124@gmail.com>