diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-10-02 22:56:19 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-10-08 13:45:41 +0800 |
commit | 52813ab249590595e43c8b03227adaa29ceceb33 (patch) | |
tree | f9514847a80877192a44019d66daf5833cb81226 /arch | |
parent | fadd7a6e616b89c7f4f7bfa7b824f290bab32c3c (diff) | |
download | lwn-52813ab249590595e43c8b03227adaa29ceceb33.tar.gz lwn-52813ab249590595e43c8b03227adaa29ceceb33.zip |
crypto: caam/qi2 - avoid double export
Both the caam ctrl file and dpaa2_caam export a couple of flags. They
use an #ifdef check to make sure that each flag is only built once,
but this fails if they are both loadable modules:
WARNING: drivers/crypto/caam/dpaa2_caam: 'caam_little_end' exported twice. Previous export was in drivers/crypto/caam/caam.ko
WARNING: drivers/crypto/caam/dpaa2_caam: 'caam_imx' exported twice. Previous export was in drivers/crypto/caam/caam.ko
Change the #ifdef to an IS_ENABLED() check in order to make it work in
all configurations. It may be better to redesign this aspect of the
two drivers in a cleaner way.
Fixes: 8d818c105501 ("crypto: caam/qi2 - add DPAA2-CAAM driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions