All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390/zcrypt: make CPRBX const
@ 2017-08-25 13:10 Bhumika Goyal
  2017-08-28  6:37 ` Harald Freudenberger
  0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-08-25 13:10 UTC (permalink / raw)
  To: julia.lawall, freude, schwidefsky, heiko.carstens, linux-s390,
	linux-kernel
  Cc: Bhumika Goyal

Make this const as it is only used in a copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/s390/crypto/zcrypt_msgtype6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/s390/crypto/zcrypt_msgtype6.c b/drivers/s390/crypto/zcrypt_msgtype6.c
index 4fddb43..afd20ce 100644
--- a/drivers/s390/crypto/zcrypt_msgtype6.c
+++ b/drivers/s390/crypto/zcrypt_msgtype6.c
@@ -140,7 +140,7 @@ struct function_and_rules_block {
  *   + 0x000A 'MRP     ' (MCL3 'PK' or CEX2C 'PK')
  * - VUD block
  */
-static struct CPRBX static_cprbx = {
+static const struct CPRBX static_cprbx = {
 	.cprb_len	=  0x00DC,
 	.cprb_ver_id	=  0x02,
 	.func_id	= {0x54, 0x32},
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] s390/zcrypt: make CPRBX const
  2017-08-25 13:10 [PATCH] s390/zcrypt: make CPRBX const Bhumika Goyal
@ 2017-08-28  6:37 ` Harald Freudenberger
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Freudenberger @ 2017-08-28  6:37 UTC (permalink / raw)
  To: Bhumika Goyal, julia.lawall, freude, schwidefsky, heiko.carstens,
	linux-s390, linux-kernel

On 08/25/2017 03:10 PM, Bhumika Goyal wrote:
> Make this const as it is only used in a copy operation.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  drivers/s390/crypto/zcrypt_msgtype6.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/s390/crypto/zcrypt_msgtype6.c b/drivers/s390/crypto/zcrypt_msgtype6.c
> index 4fddb43..afd20ce 100644
> --- a/drivers/s390/crypto/zcrypt_msgtype6.c
> +++ b/drivers/s390/crypto/zcrypt_msgtype6.c
> @@ -140,7 +140,7 @@ struct function_and_rules_block {
>   *   + 0x000A 'MRP     ' (MCL3 'PK' or CEX2C 'PK')
>   * - VUD block
>   */
> -static struct CPRBX static_cprbx = {
> +static const struct CPRBX static_cprbx = {
>  	.cprb_len	=  0x00DC,
>  	.cprb_ver_id	=  0x02,
>  	.func_id	= {0x54, 0x32},
Applied. Will be available with the next merge.
Thanks and have a nice day.

Harald Freudenberger

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-28  6:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 13:10 [PATCH] s390/zcrypt: make CPRBX const Bhumika Goyal
2017-08-28  6:37 ` Harald Freudenberger

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.