1. 11 May, 2015 6 commits
  2. 01 May, 2015 2 commits
    • David Howells's avatar
      crypto: testmgr - Wrap the LHS in expressions of the form !x == y · 09e21784
      David Howells authored
      In the test manager, there are a number of if-statements with expressions of
      the form !x == y that incur warnings with gcc-5 of the following form:
      
      ../crypto/testmgr.c: In function '__test_aead':
      ../crypto/testmgr.c:523:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
         if (!ret == template[i].fail) {
                  ^
      
      By converting the 'fail' member of struct aead_testvec and struct
      cipher_testvec to a bool, we can get rid of the warnings.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      09e21784
    • David Howells's avatar
      crypto: pcomp - Constify (de)compression parameters · f94a3597
      David Howells authored
      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: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      f94a3597
  3. 28 Apr, 2015 1 commit
  4. 26 Apr, 2015 6 commits
  5. 23 Apr, 2015 16 commits
  6. 22 Apr, 2015 9 commits