From 67472bf7502136a6c68a320cc5720fd8eed137d2 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Tue, 24 Jun 2025 19:54:49 +0200 Subject: [PATCH] qdl: address checkpatch issues CHECK: Macro argument 'typecast' may be better as '(typecast)' to Signed-off-by: Igor Opaniuk --- qdl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdl.h b/qdl.h index 93203b9..4d35ef0 100644 --- a/qdl.h +++ b/qdl.h @@ -11,7 +11,7 @@ #define container_of(ptr, typecast, member) ({ \ void *_ptr = (void *)(ptr); \ - ((typecast *)(_ptr - offsetof(typecast, member))); }) + ((typeof(typecast) *)(_ptr - offsetof(typecast, member))); }) #define MAPPING_SZ 64