kernel: Fix some -Wundef warnings.