chore: fix `clang-tidy` warnings

Fix warnings introduced by previous commit.

Change-Id: I3884f8a774860905ddf3d4554f986fde16ec9919
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/inc/hf/list.h b/inc/hf/list.h
index 1f13697..e5791c7 100644
--- a/inc/hf/list.h
+++ b/inc/hf/list.h
@@ -16,9 +16,10 @@
 	struct list_entry *prev;
 };
 
-#define LIST_INIT(l) {.next = &l, .prev = &l}
+#define LIST_INIT(l) {.next = &(l), .prev = &(l)}
+
 #define CONTAINER_OF(ptr, type, field) \
-	((type *)((char *)ptr - offsetof(type, field)))
+	((type *)((char *)(ptr) - offsetof(type, field)))
 
 static inline void list_init(struct list_entry *e)
 {