The BIT() macro definition is not available for the UAPI headers (moreover, it can be defined differently in the user space); replace its usage with the _BITUL() macro that is defined in <linux/const.h>.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -2,8 +2,10 @@ · 1 unmodified line | |||
| 2 | #ifndef __UAPI_CORESIGHT_STM_H_ | 2 | #ifndef __UAPI_CORESIGHT_STM_H_ |
| 3 | #define __UAPI_CORESIGHT_STM_H_ | 3 | #define __UAPI_CORESIGHT_STM_H_ |
| 4 | 4 | ||
| 5 | #define STM_FLAG_TIMESTAMPED BIT(3) | 5 | #include <linux/const.h> |
| 6 | #define STM_FLAG_GUARANTEED BIT(7) | 6 | |
| 7 | #define STM_FLAG_TIMESTAMPED _BITUL(3) | ||
| 8 | #define STM_FLAG_GUARANTEED _BITUL(7) | ||
| 7 | 9 | ||
| 8 | /* | 10 | /* |
| 9 | * The CoreSight STM supports guaranteed and invariant timing | 11 | * The CoreSight STM supports guaranteed and invariant timing |