diff --git a/mt76x2_regs.h b/mt76x2_regs.h index 6169eca1..50c66069 100644 --- a/mt76x2_regs.h +++ b/mt76x2_regs.h @@ -14,12 +14,6 @@ #ifndef __MT76x2_REGS_H #define __MT76x2_REGS_H -#include - -#ifndef GENMASK -#define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l)) -#endif - #define MT_ASIC_VERSION 0x0000 #define MT76XX_REV_E3 0x22 diff --git a/util.h b/util.h index 1742f2dc..f0c6e7ae 100644 --- a/util.h +++ b/util.h @@ -16,6 +16,12 @@ #define __MT76_UTIL_H #include +#include + +#ifndef GENMASK +#define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l)) +#endif + /* * Power of two check, this will check