crypto: qcom-rng - Fix qcom_rng_of_match unused warning
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Jul 2022 09:35:31 +0000 (17:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2022 10:39:35 +0000 (18:39 +0800)
commit882aa6525cabcfa0cea61e1a19c9af4c543118ac
tree325e364fb8e0151f4a34f50a74894010c06a7622
parent36cb6494429bd64b27b7ff8b4af56f8e526da2b4
crypto: qcom-rng - Fix qcom_rng_of_match unused warning

Module device tables need to be declared as maybe_unused because
they will be unused when built-in and the corresponding option is
also disabled.

This patch adds the maybe_unused attributes to OF and ACPI.  This
also allows us to remove the ifdef around the ACPI data structure.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qcom-rng.c