crypto: img-hash - Fix img_hash_match unused warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 26 Mar 2023 08:50:27 +0000 (10:50 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Mar 2023 09:50:09 +0000 (17:50 +0800)
Mark the of_device_id table as maybe_unused.  This fixes a W=1 warning:

  drivers/crypto/img-hash.c:930:34: error: ‘img_hash_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/img-hash.c

index b04f218..359aa2b 100644 (file)
@@ -927,7 +927,7 @@ finish:
        img_hash_finish_req(hdev->req, err);
 }
 
-static const struct of_device_id img_hash_match[] = {
+static const struct of_device_id img_hash_match[] __maybe_unused = {
        { .compatible = "img,hash-accelerator" },
        {}
 };