浏览代码

[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>
Herbert Xu 19 年之前
父节点
当前提交
2df15fffc6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/crypto/padlock.h

+ 1 - 1
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,