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
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 timing11 * The CoreSight STM supports guaranteed and invariant timing