Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • github.com
  • kvm-riscv
  • linux
  • Repository
  • linux
  • arch
  • x86
  • crypto
  • sha512_ssse3_glue.c
Find file BlameHistoryPermalink
  • Jussi Kivilinna's avatar
    crypto: sha512_ssse3 - fix byte count to bit count conversion · cfe82d4f
    Jussi Kivilinna authored Jun 23, 2014
    
    
    Byte-to-bit-count computation is only partly converted to big-endian and is
    mixing in CPU-endian values. Problem was noticed by sparce with warning:
    
      CHECK   arch/x86/crypto/sha512_ssse3_glue.c
    arch/x86/crypto/sha512_ssse3_glue.c:144:19: warning: restricted __be64 degrades to integer
    arch/x86/crypto/sha512_ssse3_glue.c:144:17: warning: incorrect type in assignment (different base types)
    arch/x86/crypto/sha512_ssse3_glue.c:144:17:    expected restricted __be64 <noident>
    arch/x86/crypto/sha512_ssse3_glue.c:144:17:    got unsigned long long
    
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@iki.fi>
    Acked-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    cfe82d4f