kernel: use macros from compiler.h instead of __attribute__((...))