Skip to contentSkip to conversation

s390/zcrypt: make CPRBX const

PATCH Applied Bhumika Goyal 2 participants 2 messages Aug 25, 2017 – Aug 28, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/zcrypt: make CPRBX const

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

---
 drivers/s390/crypto/zcrypt_msgtype6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/crypto/zcrypt_msgtype6.c +1 -1
index 4fddb43..afd20ce 100644
@@ -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},
Signature · 1 line
1.9.1
#1 lore raw
Quoted 12 lines · Bhumika Goyal

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

---
 drivers/s390/crypto/zcrypt_msgtype6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/crypto/zcrypt_msgtype6.c +0 -0
index 4fddb43..afd20ce 100644

drivers/s390/crypto/zcrypt_msgtype6.c struct function_and_rules_block { · line 146

Quoted 8 lines
drivers/s390/crypto/zcrypt_msgtype6.c +1 -1
@@ -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