kernel: Silence gcc47's -Wcast-qual warnings.