Maybe... I hesitate to call it "bad" unless there's a clearly better solution to the problem.
Even if it's horrible, in a kernel you might want macros like these if a function call would sit in a hotpath and induce overhead.