History

coresight: do not use the BIT() macro in the UAPI header

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>.

Eugene Syromiatnikov committed 6 years ago

Commit 9b6eaaf1 parent 2f7eaa31 file · +4 −2Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/coresight-stm.h+4−2
@@ -2,8 +2,10 @@ · 1 unmodified line
22 #ifndef __UAPI_CORESIGHT_STM_H_
33 #define __UAPI_CORESIGHT_STM_H_
44
5−#define STM_FLAG_TIMESTAMPED BIT(3)
6−#define STM_FLAG_GUARANTEED BIT(7)
5+#include <linux/const.h>
6+
7+#define STM_FLAG_TIMESTAMPED _BITUL(3)
8+#define STM_FLAG_GUARANTEED _BITUL(7)
79
810 /*
911 * The CoreSight STM supports guaranteed and invariant timing