From: Gilad Ben-Yossef <gilad@benyossef.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Ofir Drang <ofir.drang@arm.com>, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/24] staging: ccree: amend hash func def for readability Date: Tue, 12 Dec 2017 14:52:49 +0000 [thread overview] Message-ID: <1513090395-7938-4-git-send-email-gilad@benyossef.com> (raw) In-Reply-To: <1513090395-7938-1-git-send-email-gilad@benyossef.com> Func definitions in the hash implementation were did not adhere to coding style. Fix them for better readability. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> --- drivers/staging/ccree/ssi_hash.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index 6bc42e4..a80279e 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/ssi_hash.c @@ -64,10 +64,8 @@ static const u64 sha512_init[] = { SHA512_H3, SHA512_H2, SHA512_H1, SHA512_H0 }; #endif -static void cc_setup_xcbc( - struct ahash_request *areq, - struct cc_hw_desc desc[], - unsigned int *seq_size); +static void cc_setup_xcbc(struct ahash_request *areq, struct cc_hw_desc desc[], + unsigned int *seq_size); static void cc_setup_cmac(struct ahash_request *areq, struct cc_hw_desc desc[], unsigned int *seq_size); @@ -106,12 +104,9 @@ struct cc_hash_ctx { bool is_hmac; }; -static void cc_set_desc( - struct ahash_req_ctx *areq_ctx, - struct cc_hash_ctx *ctx, - unsigned int flow_mode, struct cc_hw_desc desc[], - bool is_not_last_data, - unsigned int *seq_size); +static void cc_set_desc(struct ahash_req_ctx *areq_ctx, struct cc_hash_ctx *ctx, + unsigned int flow_mode, struct cc_hw_desc desc[], + bool is_not_last_data, unsigned int *seq_size); static void cc_set_endianity(u32 mode, struct cc_hw_desc *desc) { @@ -1971,9 +1966,8 @@ static struct cc_hash_template driver_hash[] = { }; -static struct cc_hash_alg * -cc_alloc_hash_alg(struct cc_hash_template *template, struct device *dev, - bool keyed) +static struct cc_hash_alg *cc_alloc_hash_alg(struct cc_hash_template *template, + struct device *dev, bool keyed) { struct cc_hash_alg *t_crypto_alg; struct crypto_alg *alg; -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Gilad Ben-Yossef <gilad@benyossef.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, driverdev-devel@linuxdriverproject.org, linux-crypto@vger.kernel.org, Ofir Drang <ofir.drang@arm.com> Subject: [PATCH 03/24] staging: ccree: amend hash func def for readability Date: Tue, 12 Dec 2017 14:52:49 +0000 [thread overview] Message-ID: <1513090395-7938-4-git-send-email-gilad@benyossef.com> (raw) In-Reply-To: <1513090395-7938-1-git-send-email-gilad@benyossef.com> Func definitions in the hash implementation were did not adhere to coding style. Fix them for better readability. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> --- drivers/staging/ccree/ssi_hash.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index 6bc42e4..a80279e 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/ssi_hash.c @@ -64,10 +64,8 @@ static const u64 sha512_init[] = { SHA512_H3, SHA512_H2, SHA512_H1, SHA512_H0 }; #endif -static void cc_setup_xcbc( - struct ahash_request *areq, - struct cc_hw_desc desc[], - unsigned int *seq_size); +static void cc_setup_xcbc(struct ahash_request *areq, struct cc_hw_desc desc[], + unsigned int *seq_size); static void cc_setup_cmac(struct ahash_request *areq, struct cc_hw_desc desc[], unsigned int *seq_size); @@ -106,12 +104,9 @@ struct cc_hash_ctx { bool is_hmac; }; -static void cc_set_desc( - struct ahash_req_ctx *areq_ctx, - struct cc_hash_ctx *ctx, - unsigned int flow_mode, struct cc_hw_desc desc[], - bool is_not_last_data, - unsigned int *seq_size); +static void cc_set_desc(struct ahash_req_ctx *areq_ctx, struct cc_hash_ctx *ctx, + unsigned int flow_mode, struct cc_hw_desc desc[], + bool is_not_last_data, unsigned int *seq_size); static void cc_set_endianity(u32 mode, struct cc_hw_desc *desc) { @@ -1971,9 +1966,8 @@ static struct cc_hash_template driver_hash[] = { }; -static struct cc_hash_alg * -cc_alloc_hash_alg(struct cc_hash_template *template, struct device *dev, - bool keyed) +static struct cc_hash_alg *cc_alloc_hash_alg(struct cc_hash_template *template, + struct device *dev, bool keyed) { struct cc_hash_alg *t_crypto_alg; struct crypto_alg *alg; -- 2.7.4 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2017-12-12 14:52 UTC|newest] Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-12-12 14:52 [PATCH 00/24] staging: ccree: cleanups and simplification Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 01/24] staging: ccree: remove ahash wrappers Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 02/24] staging: ccree: fix hash naming convention Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef [this message] 2017-12-12 14:52 ` [PATCH 03/24] staging: ccree: amend hash func def for readability Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 04/24] staging: ccree: func params should follow func name Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 05/24] staging: ccree: shorten parameter name Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 06/24] staging: ccree: fix func def and decl coding style Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 07/24] staging: ccree: simplify expression with local var Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 08/24] staging: ccree: fix func call param indentation Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 09/24] staging: ccree: fix reg mgr naming convention Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 10/24] staging: ccree: fix req mgr func def coding style Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 11/24] staging: ccree: remove cipher sync blkcipher remains Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 12/24] staging: ccree: fix cipher naming convention Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` [PATCH 13/24] staging: ccree: fix cipher func def coding style Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:52 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 14/24] staging: ccree: fix ivgen naming convention Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 15/24] staging: ccree: fix ivgen func def coding style Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 16/24] staging: ccree: drop unsupported MULTI2 mode code Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 17/24] staging: ccree: remove SSI_CC_HAS_ macros Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 18/24] staging: ccree: rename all SSI to CC Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 19/24] staging: ccree: rename all DX " Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 20/24] staging: ccree: rename vars/structs/enums from ssi_ to cc_ Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 21/24] staging: ccree: fix buf mgr naming convention Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 22/24] staging: ccree: fix sram " Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 23/24] staging: ccree: simplify freeing SRAM memory address Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` [PATCH 24/24] staging: ccree: fix FIPS mgr naming convention Gilad Ben-Yossef 2017-12-12 14:53 ` Gilad Ben-Yossef 2017-12-12 14:53 ` 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=1513090395-7938-4-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=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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.