Commit 75120ef3 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Herbert Xu
Browse files

crypto: img-hash - Fix img_hash_match unused warning



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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 8832023e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -927,7 +927,7 @@ static void img_hash_done_task(unsigned long data)
	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" },
	{}
};