Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736405 > unrolled thread
| Started by | Janani Sankara Babu <jananis37@gmail.com> |
|---|---|
| First post | 2017-09-21 08:50 +0200 |
| Last post | 2017-09-24 09:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] staging:ccree Fix use BIT macro Janani Sankara Babu <jananis37@gmail.com> - 2017-09-21 08:50 +0200
Re: [PATCH] staging:ccree Fix use BIT macro Gilad Ben-Yossef <gilad@benyossef.com> - 2017-09-24 09:30 +0200
| From | Janani Sankara Babu <jananis37@gmail.com> |
|---|---|
| Date | 2017-09-21 08:50 +0200 |
| Subject | [PATCH] staging:ccree Fix use BIT macro |
| Message-ID | <us3t8-5H4-13@gated-at.bofh.it> |
This patch is created to solve the following warning shown by the checkpatch script Warning: Replace all occurences of (1<<x) by BIT(x) Signed-off-by: Janani Sankara Babu <jananis37@gmail.com> --- drivers/staging/ccree/ssi_cipher.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ccree/ssi_cipher.h b/drivers/staging/ccree/ssi_cipher.h index 296b375..6fbcf9d 100644 --- a/drivers/staging/ccree/ssi_cipher.h +++ b/drivers/staging/ccree/ssi_cipher.h @@ -27,11 +27,11 @@ #include "ssi_buffer_mgr.h" /* Crypto cipher flags */ -#define CC_CRYPTO_CIPHER_KEY_KFDE0 (1 << 0) -#define CC_CRYPTO_CIPHER_KEY_KFDE1 (1 << 1) -#define CC_CRYPTO_CIPHER_KEY_KFDE2 (1 << 2) -#define CC_CRYPTO_CIPHER_KEY_KFDE3 (1 << 3) -#define CC_CRYPTO_CIPHER_DU_SIZE_512B (1 << 4) +#define CC_CRYPTO_CIPHER_KEY_KFDE0 BIT(0) +#define CC_CRYPTO_CIPHER_KEY_KFDE1 BIT(1) +#define CC_CRYPTO_CIPHER_KEY_KFDE2 BIT(2) +#define CC_CRYPTO_CIPHER_KEY_KFDE3 BIT(3) +#define CC_CRYPTO_CIPHER_DU_SIZE_512B BIT(4) #define CC_CRYPTO_CIPHER_KEY_KFDE_MASK (CC_CRYPTO_CIPHER_KEY_KFDE0 | CC_CRYPTO_CIPHER_KEY_KFDE1 | CC_CRYPTO_CIPHER_KEY_KFDE2 | CC_CRYPTO_CIPHER_KEY_KFDE3) -- 1.9.1
[toc] | [next] | [standalone]
| From | Gilad Ben-Yossef <gilad@benyossef.com> |
|---|---|
| Date | 2017-09-24 09:30 +0200 |
| Message-ID | <ut9wt-5Ml-3@gated-at.bofh.it> |
| In reply to | #1736405 |
Hi Janani, On Thu, Sep 21, 2017 at 9:39 AM, Janani Sankara Babu <jananis37@gmail.com> wrote: > This patch is created to solve the following warning shown by the checkpatch > script Warning: Replace all occurences of (1<<x) by BIT(x) > > Signed-off-by: Janani Sankara Babu <jananis37@gmail.com> Thank you for the patch - unfortunately, such a fix s already present in the staging-next tree. I suggest you base your patches to ccree on that tree as it is the most current for this driver. Thanks again, Gilad -- Gilad Ben-Yossef Chief Coffee Drinker "If you take a class in large-scale robotics, can you end up in a situation where the homework eats your dog?" -- Jean-Baptiste Queru
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web