Message ID | 20210521085849.37676-5-joerichey94@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2,1/7] x86/elf: Use _BITUL() macro in UAPI headers | expand |
On 2021/5/21 下午4:58, Joe Richey wrote: > From: Joe Richey <joerichey@google.com> > > Replace BIT() in uacce's UPAI header with _BITUL(). BIT() is not defined > in the UAPI headers and its usage may cause userspace build errors. > > Fixes: 015d239ac014 ("uacce: add uacce driver") > Signed-off-by: Joe Richey <joerichey@google.com> Thanks Joe Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> > --- > include/uapi/misc/uacce/uacce.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/misc/uacce/uacce.h b/include/uapi/misc/uacce/uacce.h > index cc7185678f47..e0b4c8a2d29c 100644 > --- a/include/uapi/misc/uacce/uacce.h > +++ b/include/uapi/misc/uacce/uacce.h > @@ -2,6 +2,7 @@ > #ifndef _UAPIUUACCE_H > #define _UAPIUUACCE_H > > +#include <linux/const.h> > #include <linux/types.h> > #include <linux/ioctl.h> > > @@ -23,7 +24,7 @@ > * Support PASID > * Support device page faults (PCI PRI or SMMU Stall) > */ > -#define UACCE_DEV_SVA BIT(0) > +#define UACCE_DEV_SVA _BITUL(0) > > /** > * enum uacce_qfrt: queue file region type
diff --git a/include/uapi/misc/uacce/uacce.h b/include/uapi/misc/uacce/uacce.h index cc7185678f47..e0b4c8a2d29c 100644 --- a/include/uapi/misc/uacce/uacce.h +++ b/include/uapi/misc/uacce/uacce.h @@ -2,6 +2,7 @@ #ifndef _UAPIUUACCE_H #define _UAPIUUACCE_H +#include <linux/const.h> #include <linux/types.h> #include <linux/ioctl.h> @@ -23,7 +24,7 @@ * Support PASID * Support device page faults (PCI PRI or SMMU Stall) */ -#define UACCE_DEV_SVA BIT(0) +#define UACCE_DEV_SVA _BITUL(0) /** * enum uacce_qfrt: queue file region type