]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PADLOCK] Fix sparse warning about 1-bit signed bit-field
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 30 Oct 2005 09:44:37 +0000 (20:44 +1100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 9 Jan 2006 22:15:31 +0000 (14:15 -0800)
Change the bit-field in struct cword to unsigned to shut sparse up.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/padlock.h

index 3cf2b7a123487ce014fa074a22651bb77ea498ba..b78489bc298ac95d487de4bfaae06174fad5edf4 100644 (file)
@@ -17,7 +17,7 @@
 
 /* Control word. */
 struct cword {
-       int __attribute__ ((__packed__))
+       unsigned int __attribute__ ((__packed__))
                rounds:4,
                algo:3,
                keygen:1,