From: David Sterba Date: Fri, 4 Mar 2011 07:28:52 +0000 (+0800) Subject: crypto: tcrypt - do not attempt to write to readonly variable X-Git-Tag: v2.6.39-rc1~487^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07ef1de9baeb2add514c51f59d4bc3c659c2ca4;p=pandora-kernel.git crypto: tcrypt - do not attempt to write to readonly variable Commit da7f033ddc9fdeb (”crypto: cryptomgr - Add test infrastructure”) added a const to variable which is later used as target buffer of memcpy. crypto/tcrypt.c:217:12: warning: passing 'const char (*)[128]' to parameter of type 'void *' discards qualifiers memset(&iv, 0xff, iv_len); crypto/tcrypt.c:test_cipher_speed() - unsigned char *key, iv[128]; + const char *key, iv[128]; ... memset(&iv, 0xff, iv_len); Signed-off-by: David Sterba Signed-off-by: Herbert Xu --- Reading git-diff-tree failed