summaryrefslogtreecommitdiff
path: root/crypto/crypto_user.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-04-28 15:36:30 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-01 11:16:37 +0800
commitbdada9300735444a1c392bb49145c7da246d6b05 (patch)
tree5b4f3f1df103f2befec383ab191134291b56ced3 /crypto/crypto_user.c
parentf01465930dd5bc79cc2581a857f431222a5efe4d (diff)
downloadlinux-crypto-bdada9300735444a1c392bb49145c7da246d6b05.tar.gz
linux-crypto-bdada9300735444a1c392bb49145c7da246d6b05.zip
crypto: pcomp - Constify (de)compression parameters
In testmgr, struct pcomp_testvec takes a non-const 'params' field, which is pointed to a const deflate_comp_params or deflate_decomp_params object. With gcc-5 this incurs the following warnings: In file included from ../crypto/testmgr.c:44:0: ../crypto/testmgr.h:28736:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] .params = &deflate_comp_params, ^ ../crypto/testmgr.h:28748:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] .params = &deflate_comp_params, ^ ../crypto/testmgr.h:28776:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] .params = &deflate_decomp_params, ^ ../crypto/testmgr.h:28800:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] .params = &deflate_decomp_params, ^ Fix this by making the parameters pointer const and constifying the things that use it. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_user.c')
0 files changed, 0 insertions, 0 deletions