Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] zcrypt: remove duplicated struct CPRBX definition

Signed-off-by: Ralph Wuerthner <rwuerthn@de.ibm.com>

authored by

Ralph Wuerthner and committed by
Martin Schwidefsky
16db63fd 731475c9

+3 -48
+1 -1
drivers/s390/crypto/zcrypt_pcixcc.c
··· 277 277 }; 278 278 struct { 279 279 struct type6_hdr hdr; 280 - struct ica_CPRBX cprbx; 280 + struct CPRBX cprbx; 281 281 } __attribute__((packed)) *msg = ap_msg->message; 282 282 283 283 int rcblen = CEIL4(xcRB->request_control_blk_length);
-45
drivers/s390/crypto/zcrypt_pcixcc.h
··· 28 28 #ifndef _ZCRYPT_PCIXCC_H_ 29 29 #define _ZCRYPT_PCIXCC_H_ 30 30 31 - /** 32 - * CPRBX 33 - * Note that all shorts and ints are big-endian. 34 - * All pointer fields are 16 bytes long, and mean nothing. 35 - * 36 - * A request CPRB is followed by a request_parameter_block. 37 - * 38 - * The request (or reply) parameter block is organized thus: 39 - * function code 40 - * VUD block 41 - * key block 42 - */ 43 - struct CPRBX { 44 - unsigned short cprb_len; /* CPRB length 220 */ 45 - unsigned char cprb_ver_id; /* CPRB version id. 0x02 */ 46 - unsigned char pad_000[3]; /* Alignment pad bytes */ 47 - unsigned char func_id[2]; /* function id 0x5432 */ 48 - unsigned char cprb_flags[4]; /* Flags */ 49 - unsigned int req_parml; /* request parameter buffer len */ 50 - unsigned int req_datal; /* request data buffer */ 51 - unsigned int rpl_msgbl; /* reply message block length */ 52 - unsigned int rpld_parml; /* replied parameter block len */ 53 - unsigned int rpl_datal; /* reply data block len */ 54 - unsigned int rpld_datal; /* replied data block len */ 55 - unsigned int req_extbl; /* request extension block len */ 56 - unsigned char pad_001[4]; /* reserved */ 57 - unsigned int rpld_extbl; /* replied extension block len */ 58 - unsigned char req_parmb[16]; /* request parm block 'address' */ 59 - unsigned char req_datab[16]; /* request data block 'address' */ 60 - unsigned char rpl_parmb[16]; /* reply parm block 'address' */ 61 - unsigned char rpl_datab[16]; /* reply data block 'address' */ 62 - unsigned char req_extb[16]; /* request extension block 'addr'*/ 63 - unsigned char rpl_extb[16]; /* reply extension block 'addres'*/ 64 - unsigned short ccp_rtcode; /* server return code */ 65 - unsigned short ccp_rscode; /* server reason code */ 66 - unsigned int mac_data_len; /* Mac Data Length */ 67 - unsigned char logon_id[8]; /* Logon Identifier */ 68 - unsigned char mac_value[8]; /* Mac Value */ 69 - unsigned char mac_content_flgs;/* Mac content flag byte */ 70 - unsigned char pad_002; /* Alignment */ 71 - unsigned short domain; /* Domain */ 72 - unsigned char pad_003[12]; /* Domain masks */ 73 - unsigned char pad_004[36]; /* reserved */ 74 - } __attribute__((packed)); 75 - 76 31 int zcrypt_pcixcc_init(void); 77 32 void zcrypt_pcixcc_exit(void); 78 33
+2 -2
include/asm-s390/zcrypt.h
··· 91 91 * VUD block 92 92 * key block 93 93 */ 94 - struct ica_CPRBX { 94 + struct CPRBX { 95 95 unsigned short cprb_len; /* CPRB length 220 */ 96 96 unsigned char cprb_ver_id; /* CPRB version id. 0x02 */ 97 97 unsigned char pad_000[3]; /* Alignment pad bytes */ ··· 130 130 unsigned char cntrl_domain[4];/* Control domain */ 131 131 unsigned char S390enf_mask[4];/* S/390 enforcement mask */ 132 132 unsigned char pad_004[36]; /* reserved */ 133 - }; 133 + } __attribute__((packed)); 134 134 135 135 /** 136 136 * xcRB