From: Gilad Ben-Yossef Date: Thu, 1 Jun 2017 11:02:56 +0000 (+0300) Subject: staging: ccree: add parentheses to macro argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0eee1b6dabd79019196fd1d1a66eeb93788867a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: ccree: add parentheses to macro argument Add parentheses around macro argument to guard against precedence issues. Signed-off-by: Gilad Ben-Yossef Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 46b6f3f3193a..1fc68defc59c 100644 --- a/drivers/staging/ccree/cc_crypto_ctx.h +++ b/drivers/staging/ccree/cc_crypto_ctx.h @@ -280,7 +280,7 @@ struct drv_ctx_aead { * @type: Type of context structure * @member: Associated context field */ -#define GET_CTX_FIELD_ADDR(ctx, type, member) (ctx + offsetof(type, member)) +#define GET_CTX_FIELD_ADDR(ctx, type, member) ((ctx) + offsetof(type, member)) #endif /* _CC_CRYPTO_CTX_H_ */