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

crypto: ccp - change bitfield type to unsigned ints

Bit fields are not sensitive to endianness, so use
a transparent standard data type

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Gary R Hook and committed by
Herbert Xu
fdd2cf9d 877f69a8

+21 -21
+21 -21
drivers/crypto/ccp/ccp-dev.h
··· 541 541 * word 7: upper 16 bits of key pointer; key memory type 542 542 */ 543 543 struct dword0 { 544 - __le32 soc:1; 545 - __le32 ioc:1; 546 - __le32 rsvd1:1; 547 - __le32 init:1; 548 - __le32 eom:1; /* AES/SHA only */ 549 - __le32 function:15; 550 - __le32 engine:4; 551 - __le32 prot:1; 552 - __le32 rsvd2:7; 544 + unsigned int soc:1; 545 + unsigned int ioc:1; 546 + unsigned int rsvd1:1; 547 + unsigned int init:1; 548 + unsigned int eom:1; /* AES/SHA only */ 549 + unsigned int function:15; 550 + unsigned int engine:4; 551 + unsigned int prot:1; 552 + unsigned int rsvd2:7; 553 553 }; 554 554 555 555 struct dword3 { 556 - __le32 src_hi:16; 557 - __le32 src_mem:2; 558 - __le32 lsb_cxt_id:8; 559 - __le32 rsvd1:5; 560 - __le32 fixed:1; 556 + unsigned int src_hi:16; 557 + unsigned int src_mem:2; 558 + unsigned int lsb_cxt_id:8; 559 + unsigned int rsvd1:5; 560 + unsigned int fixed:1; 561 561 }; 562 562 563 563 union dword4 { ··· 567 567 568 568 union dword5 { 569 569 struct { 570 - __le32 dst_hi:16; 571 - __le32 dst_mem:2; 572 - __le32 rsvd1:13; 573 - __le32 fixed:1; 570 + unsigned int dst_hi:16; 571 + unsigned int dst_mem:2; 572 + unsigned int rsvd1:13; 573 + unsigned int fixed:1; 574 574 } fields; 575 575 __le32 sha_len_hi; 576 576 }; 577 577 578 578 struct dword7 { 579 - __le32 key_hi:16; 580 - __le32 key_mem:2; 581 - __le32 rsvd1:14; 579 + unsigned int key_hi:16; 580 + unsigned int key_mem:2; 581 + unsigned int rsvd1:14; 582 582 }; 583 583 584 584 struct ccp5_desc {