From: Herbert Xu Date: Sun, 30 Oct 2005 09:44:37 +0000 (+1100) Subject: [PADLOCK] Fix sparse warning about 1-bit signed bit-field X-Git-Tag: v2.6.16-rc1~658^2~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2df15fffc612b53b2c8e4ff3c981a82441bc00ae;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/drivers/crypto/padlock.h b/drivers/crypto/padlock.h index 3cf2b7a1234..b78489bc298 100644 --- a/drivers/crypto/padlock.h +++ b/drivers/crypto/padlock.h @@ -17,7 +17,7 @@ /* Control word. */ struct cword { - int __attribute__ ((__packed__)) + unsigned int __attribute__ ((__packed__)) rounds:4, algo:3, keygen:1,