The macro argument <val> is cast-ed to u32 in some of the places.
Because this arg can be some arithmetic computation (e.g. address +
offset) the cast should be on the whole expression.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
                                break; \
                        (val) = __elbi_read; \
                } else {\
-                       (val) = RREG32((u32)addr); \
+                       (val) = RREG32((u32)(addr)); \
                } \
                if (cond) \
                        break; \
                                        break; \
                                (val) = __elbi_read; \
                        } else {\
-                               (val) = RREG32((u32)addr); \
+                               (val) = RREG32((u32)(addr)); \
                        } \
                        break; \
                } \