summaryrefslogtreecommitdiff
path: root/include/arch/x86_64/linux/genwqe/genwqe_card.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-25 19:24:38 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-25 20:35:03 +0100
commita984eb367c032dbe2577f01238c3d1268526be70 (patch)
tree437fef40379b2758b129ccea39df3570fa2d145e /include/arch/x86_64/linux/genwqe/genwqe_card.h
parent8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff)
Clang-tidy fixes
Diffstat (limited to 'include/arch/x86_64/linux/genwqe/genwqe_card.h')
-rw-r--r--include/arch/x86_64/linux/genwqe/genwqe_card.h9
1 files changed, 3 insertions, 6 deletions
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)