From: Daniel Palmer Date: Mon, 13 Sep 2021 11:29:13 +0000 (+0900) Subject: iio: imu: inv_mpu6050: Mark acpi match table as maybe unused X-Git-Tag: v5.16-rc1~119^2~23^2~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3870646642c2a22d2c4d5602559b3842e0fb99;p=thirdparty%2Fkernel%2Fstable.git iio: imu: inv_mpu6050: Mark acpi match table as maybe unused When building kernels without ACPI support the table is declared but is not used because ACPI_PTR() turns it into a NULL. Add the __maybe_unused attribute to stop the compiler whining. Signed-off-by: Daniel Palmer Acked-by: Jean-Baptiste Maneyrol Link: https://lore.kernel.org/r/20210913112913.2148026-1-daniel@0x0f.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c index 95f16951c8f47..3ef17e3f50e2a 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c @@ -249,7 +249,7 @@ static const struct of_device_id inv_of_match[] = { }; MODULE_DEVICE_TABLE(of, inv_of_match); -static const struct acpi_device_id inv_acpi_match[] = { +static const struct acpi_device_id __maybe_unused inv_acpi_match[] = { {"INVN6500", INV_MPU6500}, { }, };