From: Christian Luciano Moreno <christianluciano.m@xxxxxxxxx> Add parenthesis to Macro argument to avoid precedence issues. Signed-off-by: Christian Luciano Moreno <christianluciano.m@xxxxxxxxx> --- drivers/staging/rtl8712/basic_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/basic_types.h b/drivers/staging/rtl8712/basic_types.h index 4ad7f35b1644..3e6d4ff45a75 100644 --- a/drivers/staging/rtl8712/basic_types.h +++ b/drivers/staging/rtl8712/basic_types.h @@ -21,7 +21,7 @@ #define SIZE_T __kernel_size_t #define sint signed int -#define FIELD_OFFSET(s, field) ((addr_t)&((s *)(0))->field) +#define FIELD_OFFSET(s, field) ((addr_t)&(((s) *)(0))->(field)) /* Should we extend this to be host_addr_t and target_addr_t for case: * host : x86_64 -- 2.22.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel