diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-09-19 16:09:06 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-10-05 01:06:19 +1000 |
commit | a7174f978563e112fcd8601c9f8b4a9ddef3388d (patch) | |
tree | 2ff9cf49fdddb2e4de6b0a175c14d606d2c3ace9 /crypto/algif_rng.c | |
parent | 5fd39c4d96c9bcbda46960772a01d90f5f72037f (diff) |
crypto: hisilicon - allow compile-testing on x86
To avoid missing arm64 specific warnings that get introduced
in this driver, allow compile-testing on all 64-bit architectures.
The only actual arm64 specific code in this driver is an open-
coded 128 bit MMIO write. On non-arm64 the same can be done
using memcpy_toio. What I also noticed is that the mmio store
(either one) is not endian-safe, this will only work on little-
endian configurations, so I also add a Kconfig dependency on
that, regardless of the architecture.
Finally, a depenndecy on CONFIG_64BIT is needed because of the
writeq().
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_rng.c')
0 files changed, 0 insertions, 0 deletions