Skip to content

Commit 2df15ff

Browse files
herbertxDavid S. Miller
authored andcommitted
[PADLOCK] Fix sparse warning about 1-bit signed bit-field
Change the bit-field in struct cword to unsigned to shut sparse up. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent f17578d commit 2df15ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/crypto/padlock.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/* Control word. */
1919
struct cword {
20-
int __attribute__ ((__packed__))
20+
unsigned int __attribute__ ((__packed__))
2121
rounds:4,
2222
algo:3,
2323
keygen:1,

0 commit comments

Comments
 (0)