[PATCH] s390/crypto: make cca_public_sec and cca_token_hdr const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Declare cca_public_sec and cca_token_hdr structures as const as they are
only used during copy operations.

Signed-off-by: Bhumika Goyal <bhumirks@xxxxxxxxx>
---
 drivers/s390/crypto/zcrypt_cca_key.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/s390/crypto/zcrypt_cca_key.h b/drivers/s390/crypto/zcrypt_cca_key.h
index 12cff62..7b78ba6 100644
--- a/drivers/s390/crypto/zcrypt_cca_key.h
+++ b/drivers/s390/crypto/zcrypt_cca_key.h
@@ -116,10 +116,10 @@ struct cca_pvt_ext_CRT_sec {
  */
 static inline int zcrypt_type6_mex_key_en(struct ica_rsa_modexpo *mex, void *p)
 {
-	static struct cca_token_hdr static_pub_hdr = {
+	static const struct cca_token_hdr static_pub_hdr = {
 		.token_identifier	=  0x1E,
 	};
-	static struct cca_public_sec static_pub_sec = {
+	static const struct cca_public_sec static_pub_sec = {
 		.section_identifier	=  0x04,
 	};
 	struct {
@@ -176,7 +176,7 @@ static inline int zcrypt_type6_mex_key_en(struct ica_rsa_modexpo *mex, void *p)
  */
 static inline int zcrypt_type6_crt_key(struct ica_rsa_modexpo_crt *crt, void *p)
 {
-	static struct cca_public_sec static_cca_pub_sec = {
+	static const struct cca_public_sec static_cca_pub_sec = {
 		.section_identifier = 4,
 		.section_length = 0x000f,
 		.exponent_len = 0x0003,
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux