From patchwork Thu Jun 1 11:02:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 100881 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp699646obc; Thu, 1 Jun 2017 04:04:19 -0700 (PDT) X-Received: by 10.98.245.155 with SMTP id b27mr505813pfm.181.1496315059452; Thu, 01 Jun 2017 04:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315059; cv=none; d=google.com; s=arc-20160816; b=Qwd5KoSndBo+MOWANPVm0xiNXMmMlij0gAJN9O9xjZuFG8xh4zFQHBCaThWnzwz1EG 1fgo5YUXCSQTD5v7vIPJih8iwwuycaF7oWbaA7qYe8ooWyX8L8qKYgUNytsgrwX5qwmp n4LUUOb8Ad66e5XJIiDGWo6PVyBGFiyboWxPAtGsWA0s6JHxQth8EdIO1hGxmADAqj9Q 3uoVhZ8mEqGPUo3xqopDB3O/xGt/SvlLg46KVFBQY/41HSVTkw1MnWc+B1HVq+aOiIaf oR/j+GtIgvHHQ5U8uwggd+bolXa6bhhMjnVMzz9uPvps/bcnVxKF+NPGgdGxfWdhKTMe yKjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2QlkGf8JdcNCqwV/TlL/E6bzA1eEwqH3gxStcxmFsqs=; b=yZKsg7oTHxy0vwVrQgITreOQuPPAlNLFy6cvShzGr3IJdh/lqEQ0xjR1AVAD24AI6r jYjMLwBPz4A7VpN8V/lRzCf9edeoE8JZ+2/ZAwLldmbkGaSuLCeiwbbCZqJ8rsl5vb0m +S1caAAFPGHAvCzaqrccJhoGBZVkrKE3s3zb/pY4xMcAzsXCNWCaVQAtRcGJpjdnNbEU MKMa09TlWxmWFwtExKU1RPdDwNW5CnMhO1kDtgXb65bZxZe0EjBq9ZPiZobgKtbm0Z4h F/7zJnr9q6AZ6fN8t2qjVZRB71WOxfImS8EaMB8rDkZislr26a/6x88QW0xzRVBO+kDb k/Rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si19575184pfq.323.2017.06.01.04.03.58; Thu, 01 Jun 2017 04:04:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbdFALD4 (ORCPT + 1 other); Thu, 1 Jun 2017 07:03:56 -0400 Received: from foss.arm.com ([217.140.101.70]:54412 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564AbdFALDz (ORCPT ); Thu, 1 Jun 2017 07:03:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4650B1596; Thu, 1 Jun 2017 04:03:55 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 706423F578; Thu, 1 Jun 2017 04:03:53 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Joe Perches , Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v2 06/20] staging: ccree: add parentheses to macro argument Date: Thu, 1 Jun 2017 14:02:56 +0300 Message-Id: <1496314993-30229-7-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496314993-30229-1-git-send-email-gilad@benyossef.com> References: <1496314993-30229-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add parentheses around macro argument to guard against precedence issues. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_crypto_ctx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 838e6e4..20f3f9f 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_ */