From: Krzysztof Kozlowski Date: Fri, 10 Mar 2023 22:30:26 +0000 (+0100) Subject: crypto: atmel-sha204a - Mark OF related data as maybe unused X-Git-Tag: v6.6.17~4781^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75f3d950054389e2556277e42170e37dd97cd872;p=platform%2Fkernel%2Flinux-rpi.git crypto: atmel-sha204a - Mark OF related data as maybe unused The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/crypto/atmel-sha204a.c:129:34: error: ‘atmel_sha204a_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/atmel-sha204a.c b/drivers/crypto/atmel-sha204a.c index 4403dbb..44a185a 100644 --- a/drivers/crypto/atmel-sha204a.c +++ b/drivers/crypto/atmel-sha204a.c @@ -126,7 +126,7 @@ static void atmel_sha204a_remove(struct i2c_client *client) kfree((void *)i2c_priv->hwrng.priv); } -static const struct of_device_id atmel_sha204a_dt_ids[] = { +static const struct of_device_id atmel_sha204a_dt_ids[] __maybe_unused = { { .compatible = "atmel,atsha204", }, { .compatible = "atmel,atsha204a", }, { /* sentinel */ }