1. 10 Dec, 2015 3 commits
    • Arnd Bergmann's avatar
      crypto: sahara - fix debug output for 64-bit dma_addr_t · d4b98f20
      Arnd Bergmann authored
      The sahara_dump_descriptors and sahara_dump_links functions attempt
      to print a dma_addr_t value with a 0x%08x format string, which
      produces a warning when dma_addr_t is 64-bit wide:
      
      drivers/crypto/sahara.c:419:120: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]
      
      This changes the code to use the %pad format string that is meant
      for dma_addr_t, which avoids the warning and gives us the correct
      output in all configurations.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      d4b98f20
    • Arnd Bergmann's avatar
      crypto: sahara - fix 64-bit dma_addr_t compilation · 75d3f811
      Arnd Bergmann authored
      The sahara hardware uses DMA descriptors with 32-bit addresses, but
      dma_addr_t is variable size depending on whether we want to support
      any devices that use 64-bit DMA addresses in hardware.
      This means that the definition of the DMA descriptor structure is wrong,
      and we helpfully get a compiler warning about them too:
      
      drivers/crypto/sahara.c:423:372: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]
      
      This changes the definition of the sahara_hw_desc and sahara_hw_link
      structures to only contain fixed-length members, which is required
      to make the driver work on ARM LPAE mode, and avoids most of the
      gcc warnings we get.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      75d3f811
    • Julia Lawall's avatar
      crypto: drbg - constify drbg_state_ops structures · e4bc02ac
      Julia Lawall authored
      The drbg_state_ops structures are never modified, so declare them as const.
      
      Done with the help of Coccinelle.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      e4bc02ac
  2. 09 Dec, 2015 11 commits
  3. 04 Dec, 2015 8 commits
  4. 27 Nov, 2015 3 commits
  5. 24 Nov, 2015 3 commits
  6. 23 Nov, 2015 8 commits
  7. 17 Nov, 2015 4 commits