[PATCH] dm: fix an 'undefined' error in some macros