1. 27 11月, 2015 1 次提交
  2. 24 11月, 2015 3 次提交
  3. 23 11月, 2015 4 次提交
    • L
      crypto: picoxcell - set [src|dst]_nents and nents as signed int · f53e38af
      LABBE Corentin 提交于
      The unsigned int variables [src|dst]_nents and nents can be assigned
      signed value (-EINVAL) from sg_nents_for_len().
      Furthermore they are used only by dma_map_sg and dma_unmap_sg which wait
      for an signed int, so they must be set as int.
      
      Fixes: f051f95e ("crypto: picoxcell - check return value of sg_nents_for_len")
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NLABBE Corentin <clabbe.montjoie@gmail.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f53e38af
    • L
      crypto: sahara - set nb_[in|out]_sg as signed int · f8e28a0d
      LABBE Corentin 提交于
      The two unsigned int variables nb_in_sg and nb_out_sg can be assigned
      signed value (-EINVAL) from sg_nents_for_len().
      Furthermore they are used only by dma_map_sg and dma_unmap_sg which wait
      for an signed int, so they must be set as int.
      
      Fixes: 6c2b74d4 ("crypto: sahara - check return value of sg_nents_for_len")
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NLABBE Corentin <clabbe.montjoie@gmail.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f8e28a0d
    • A
      crypto: atmel: fix bogus select · 56b85c9d
      Arnd Bergmann 提交于
      The Atmel at91 crypto driver unconditionally selects AT_HDMAC,
      which results in a Kconfig warning if that driver is not enabled:
      
      warning: (CRYPTO_DEV_ATMEL_AES) selects AT_HDMAC which has unmet direct dependencies (DMADEVICES && ARCH_AT91)
      
      The crypto driver itself does not actually have a dependency
      on a particular dma engine, other than this being the one that
      is used in at91.
      
      Removing the 'select' gets rid of the warning, but can cause
      the driver to be unusable if the HDMAC is not enabled at the
      same time. To work around that, this patch clarifies the runtime
      dependency to be 'AT_HDMAC || AT_XDMAC', but adds an alternative
      for COMPILE_TEST, which lets the driver get build on all systems.
      
      The ARCH_AT91 dependency is implied by AT_XDMAC || AT_HDMAC now
      and no longer needs to be listed separately.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      56b85c9d
    • A
      crypto: atmel - fix 64-bit warnings · 20ecae79
      Arnd Bergmann 提交于
      The atmel AES driver assumes that 'int' and 'size_t' are the same
      type in multiple locations, which the compiler warns about when
      building it for 64-bit systems:
      
      In file included from ../drivers/crypto/atmel-aes.c:17:0:
      drivers/crypto/atmel-aes.c: In function 'atmel_aes_sg_copy':
      include/linux/kernel.h:724:17: warning: comparison of distinct pointer types lacks a cast
      drivers/crypto/atmel-aes.c:448:11: note: in expansion of macro 'min'
      
      drivers/crypto/atmel-aes.c: In function 'atmel_aes_crypt_dma_stop':
      include/linux/kern_levels.h:4:18: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
      
      This changes the format strings to use the %z modifier when printing
      a size_t, and makes sure that we use the correct size_t type where
      needed. In case of sg_dma_len(), the type of the result depends
      on CONFIG_NEED_SG_DMA_LENGTH, so we have to use min_t to get it to
      work in all configurations.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NCyrille Pitchen <cyrille.pitchen@atmel.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      20ecae79
  4. 17 11月, 2015 16 次提交
  5. 16 11月, 2015 2 次提交
  6. 07 11月, 2015 1 次提交
  7. 20 10月, 2015 13 次提交