The table is always declared but is unused when both CONFIG_OF and CONFIG_MODULES are not set. This results in a compile warning. Fix it by marking the table as __maybe_unused. The compiler will discard it if unused. Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> --- drivers/media/i2c/adv7604.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index c864db9..5de6dad 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -2672,7 +2672,7 @@ static struct i2c_device_id adv7604_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, adv7604_i2c_id); -static struct of_device_id adv7604_of_id[] = { +static struct of_device_id adv7604_of_id[] __maybe_unused = { { .compatible = "adi,adv7604", .data = &adv7604_chip_info[ADV7604] }, { .compatible = "adi,adv7611", .data = &adv7604_chip_info[ADV7611] }, { } -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html