From a984eb367c032dbe2577f01238c3d1268526be70 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 19:24:38 +0100 Subject: Clang-tidy fixes --- include/arch/x86_64/linux/genwqe/genwqe_card.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/arch/x86_64/linux/genwqe/genwqe_card.h') diff --git a/include/arch/x86_64/linux/genwqe/genwqe_card.h b/include/arch/x86_64/linux/genwqe/genwqe_card.h index 7f8fde44..cf79522b 100644 --- a/include/arch/x86_64/linux/genwqe/genwqe_card.h +++ b/include/arch/x86_64/linux/genwqe/genwqe_card.h @@ -388,11 +388,9 @@ struct genwqe_debug_data { #define ATS_TYPE_SGL_RD 0x6ull /* sgl read only */ #define ATS_TYPE_SGL_RDWR 0x7ull /* sgl read/write */ -#define ATS_SET_FLAGS(_struct, _field, _flags) \ - (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8)))) +#define ATS_SET_FLAGS(_struct, _field, _flags) (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8)))) -#define ATS_GET_FLAGS(_ats, _byte_offs) \ - (((_ats) >> (44 - (4 * ((_byte_offs) / 8)))) & 0xf) +#define ATS_GET_FLAGS(_ats, _byte_offs) (((_ats) >> (44 - (4 * ((_byte_offs) / 8)))) & 0xf) /** * struct genwqe_ddcb_cmd - User parameter for generic DDCB commands @@ -491,8 +489,7 @@ struct genwqe_mem { */ #define GENWQE_EXECUTE_DDCB _IOWR(GENWQE_IOC_CODE, 50, struct genwqe_ddcb_cmd) -#define GENWQE_EXECUTE_RAW_DDCB \ - _IOWR(GENWQE_IOC_CODE, 51, struct genwqe_ddcb_cmd) +#define GENWQE_EXECUTE_RAW_DDCB _IOWR(GENWQE_IOC_CODE, 51, struct genwqe_ddcb_cmd) /* Service Layer functions (PF only) */ #define GENWQE_SLU_UPDATE _IOWR(GENWQE_IOC_CODE, 80, struct genwqe_bitstream) -- cgit v1.2.3