1. 07 12月, 2016 5 次提交
  2. 01 12月, 2016 2 次提交
    • A
      crypto: caam - make aamalg_desc a proper module · 37d84681
      Arnd Bergmann 提交于
      The drivers/crypto/caam/ directory is entered during build only
      for building modules when CONFIG_CRYPTO_DEV_FSL_CAAM=m, but
      CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC is defined as a
      'bool' symbol, meaning that caamalg_desc.c is always compiled
      into built-in code, or not at all, leading to a link failure:
      
      ERROR: "cnstr_shdsc_xts_ablkcipher_decap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_xts_ablkcipher_encap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_aead_givencap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_aead_decap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_aead_encap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_aead_null_decap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_aead_null_encap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_rfc4106_decap" [drivers/crypto/caam/caamalg.ko] undefined!
      ERROR: "cnstr_shdsc_rfc4106_encap" [drivers/crypto/caam/caamalg.ko] undefined!
      ...
      
      Making caamalg_desc itself a loadable module fixes this configuration
      by ensuring the driver gets built. Aside from making the symbol
      'tristate', I'm adding appropriate module metadata here.
      
      Fixes: 8cea7b66 ("crypto: caam - refactor encryption descriptors generation")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      37d84681
    • A
      crypto: caam - pass key buffers with typesafe pointers · 9c0bc511
      Arnd Bergmann 提交于
      The 'key' field is defined as a 'u64' and used for two different
      pieces of information: either to store a pointer or a dma_addr_t.
      The former leads to a build error on 32-bit machines:
      
      drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_aead_null_encap':
      drivers/crypto/caam/caamalg_desc.c:67:27: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
      drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_aead_null_decap':
      drivers/crypto/caam/caamalg_desc.c:143:27: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
      
      Using a union to provide correct types gets rid of the warnings
      and as well as a couple of redundant casts.
      
      Fixes: db57656b ("crypto: caam - group algorithm related params")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      9c0bc511
  3. 30 11月, 2016 10 次提交
  4. 28 11月, 2016 9 次提交
  5. 19 11月, 2016 1 次提交
  6. 17 11月, 2016 3 次提交
  7. 13 11月, 2016 10 次提交