From: Gilad Ben-Yossef <gilad@benyossef.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Joe Perches <joe@perches.com>, Ofir Drang <ofir.drang@arm.com>,
linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org,
driverdev-devel@linuxdriverproject.org,
devel@driverdev.osuosl.org
Subject: [PATCH v2 04/20] staging: ccree: fix operator spacing
Date: Thu, 1 Jun 2017 14:02:54 +0300 [thread overview]
Message-ID: <1496314993-30229-5-git-send-email-gilad@benyossef.com> (raw)
In-Reply-To: <1496314993-30229-1-git-send-email-gilad@benyossef.com>
cc_crypto_ctx.h file had a few macro definitions with missing
spaces around operators. Add missing spaces.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
---
drivers/staging/ccree/cc_crypto_ctx.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h
index 15b4ef9..10f57e6 100644
--- a/drivers/staging/ccree/cc_crypto_ctx.h
+++ b/drivers/staging/ccree/cc_crypto_ctx.h
@@ -220,7 +220,7 @@ struct drv_ctx_hmac {
enum drv_crypto_alg alg; /* DRV_CRYPTO_ALG_HMAC */
enum drv_hash_mode mode;
u8 digest[CC_DIGEST_SIZE_MAX];
- u32 k0[CC_HMAC_BLOCK_SIZE_MAX/sizeof(u32)];
+ u32 k0[CC_HMAC_BLOCK_SIZE_MAX / sizeof(u32)];
u32 k0_size;
/* reserve to end of allocated context size */
u8 reserved[CC_CTX_SIZE - 3 * sizeof(u32) -
@@ -244,8 +244,8 @@ struct drv_ctx_cipher {
u8 xex_key[CC_AES_KEY_SIZE_MAX];
/* reserve to end of allocated context size */
u32 reserved[CC_DRV_CTX_SIZE_WORDS - 7 -
- CC_AES_BLOCK_SIZE/sizeof(u32) - 2 *
- (CC_AES_KEY_SIZE_MAX/sizeof(u32))];
+ CC_AES_BLOCK_SIZE / sizeof(u32) - 2 *
+ (CC_AES_KEY_SIZE_MAX / sizeof(u32))];
};
/* authentication and encryption with associated data class */
@@ -265,8 +265,8 @@ struct drv_ctx_aead {
u8 key[CC_AES_KEY_SIZE_MAX];
/* reserve to end of allocated context size */
u32 reserved[CC_DRV_CTX_SIZE_WORDS - 8 -
- 3 * (CC_AES_BLOCK_SIZE/sizeof(u32)) -
- CC_AES_KEY_SIZE_MAX/sizeof(u32)];
+ 3 * (CC_AES_BLOCK_SIZE / sizeof(u32)) -
+ CC_AES_KEY_SIZE_MAX / sizeof(u32)];
};
/*******************************************************************/
--
2.1.4
next prev parent reply other threads:[~2017-06-01 11:03 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 11:02 [PATCH v2 00/20] additional driver cleanups Gilad Ben-Yossef
2017-06-01 11:02 ` [PATCH v2 01/20] staging: ccree: remove spurious blank lines Gilad Ben-Yossef
2017-06-01 11:20 ` Joe Perches
2017-06-01 11:42 ` Joe Perches
2017-06-01 11:02 ` [PATCH v2 02/20] staging: ccree: replace bit shift with BIT macro Gilad Ben-Yossef
2017-06-03 8:46 ` Greg Kroah-Hartman
2017-06-04 5:31 ` Gilad Ben-Yossef
2017-06-01 11:02 ` [PATCH v2 03/20] staging: ccree: fix longer than 80 chars lines Gilad Ben-Yossef
2017-06-01 11:02 ` Gilad Ben-Yossef [this message]
2017-06-01 11:02 ` [PATCH v2 05/20] staging: ccree: fix comments formatting Gilad Ben-Yossef
2017-06-01 11:02 ` [PATCH v2 06/20] staging: ccree: add parentheses to macro argument Gilad Ben-Yossef
2017-06-01 11:02 ` [PATCH v2 07/20] staging: ccree: refactor HW command FIFO access Gilad Ben-Yossef
2017-06-01 11:02 ` [PATCH v2 08/20] staging: ccree: remove 48 bit dma addr sim Gilad Ben-Yossef
2017-06-01 11:02 ` [PATCH v2 09/20] staging: ccree: refactor LLI access macros Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 10/20] staging: ccree: move M/LLI defines to header file Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 11/20] staging: ccree: remove unused debug macros Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 12/20] staging: ccree: remove cycle count debug support Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 13/20] staging: ccree: move request_mgr to generic bitfield ops Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 14/20] staging: ccree: remove custom bitfield macros Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 15/20] staging: ccree: remove unused struct Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 16/20] staging: ccree: use snake_case for hash enums Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 17/20] staging: ccree: drop no longer used macro Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 18/20] staging: ccree: remove dead code Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 19/20] staging: ccree: remove spurious blank line Gilad Ben-Yossef
2017-06-01 11:03 ` [PATCH v2 20/20] staging: ccree: fix wrong whitespace usage Gilad Ben-Yossef
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1496314993-30229-5-git-send-email-gilad@benyossef.com \
--to=gilad@benyossef.com \
--cc=devel@driverdev.osuosl.org \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ofir.drang@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).