1. 11 Dec, 2017 3 commits
    • Horia Geantă's avatar
      crypto: caam/qi - use correct print specifier for size_t · 9db09e3b
      Horia Geantă authored
      Fix below warnings on ARMv7 by using %zu for printing size_t values:
      
      drivers/crypto/caam/caamalg_qi.c: In function aead_edesc_alloc:
      drivers/crypto/caam/caamalg_qi.c:417:17: warning: format %lu expects argument of type long unsigned int, but argument 4 has type unsigned int [-Wformat=]
         sizeof(struct qm_sg_entry))
                       ^
      drivers/crypto/caam/caamalg_qi.c:672:16: note: in expansion of macro CAAM_QI_MAX_AEAD_SG
          qm_sg_ents, CAAM_QI_MAX_AEAD_SG);
                      ^
      drivers/crypto/caam/caamalg_qi.c: In function ablkcipher_edesc_alloc:
      drivers/crypto/caam/caamalg_qi.c:440:17: warning: format %lu expects argument of type long unsigned int, but argument 4 has type unsigned int [-Wformat=]
         sizeof(struct qm_sg_entry))
                       ^
      drivers/crypto/caam/caamalg_qi.c:909:16: note: in expansion of macro CAAM_QI_MAX_ABLKCIPHER_SG
          qm_sg_ents, CAAM_QI_MAX_ABLKCIPHER_SG);
                      ^
      drivers/crypto/caam/caamalg_qi.c: In function ablkcipher_giv_edesc_alloc:
      drivers/crypto/caam/caamalg_qi.c:440:17: warning: format %lu expects argument of type long unsigned int, but argument 4 has type unsigned int [-Wformat=]
         sizeof(struct qm_sg_entry))
                       ^
      drivers/crypto/caam/caamalg_qi.c:1062:16: note: in expansion of macro CAAM_QI_MAX_ABLKCIPHER_SG
          qm_sg_ents, CAAM_QI_MAX_ABLKCIPHER_SG);
                      ^
      
      Fixes: eb9ba37d ("crypto: caam/qi - handle large number of S/Gs case")
      Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      9db09e3b
    • Gomonovych, Vasyl's avatar
      crypto: arm/aes-neonbs - Use PTR_ERR_OR_ZERO() · 26d85e5f
      Gomonovych, Vasyl authored
      Fix ptr_ret.cocci warnings:
      arch/arm/crypto/aes-neonbs-glue.c:184:1-3: WARNING: PTR_ERR_OR_ZERO can be used
      arch/arm/crypto/aes-neonbs-glue.c:261:1-3: WARNING: PTR_ERR_OR_ZERO can be used
      
      Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
      
      Generated by: scripts/coccinelle/api/ptr_ret.cocci
      Signed-off-by: default avatarVasyl Gomonovych <gomonovych@gmail.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      26d85e5f
    • Hauke Mehrtens's avatar
      crypto: ecdh - fix typo in KPP dependency of CRYPTO_ECDH · b5b90077
      Hauke Mehrtens authored
      This fixes a typo in the CRYPTO_KPP dependency of CRYPTO_ECDH.
      
      Fixes: 3c4b2390 ("crypto: ecdh - Add ECDH software support")
      Cc: <stable@vger.kernel.org> # v4.8+
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      b5b90077
  2. 29 Nov, 2017 37 commits