mainline build failure due to 02852c01f654 ("media: i2c: imx290: Initialize runtime PM before subdev")

From: Sudip Mukherjee
Date: Fri Mar 31 2023 - 18:38:18 EST


Hi All,

The mainline kernel branch had been failing last few weeks for alpha,
csky and s390 allmodconfig with the error:

drivers/media/i2c/imx290.c:1093:12: error: 'imx290_runtime_suspend' defined but not used [-Werror=unused-function]
1093 | static int imx290_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/imx290.c:1085:12: error: 'imx290_runtime_resume' defined but not used [-Werror=unused-function]
1085 | static int imx290_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~

git bisect pointed to 02852c01f654 ("media: i2c: imx290: Initialize runtime PM before subdev")

I will be happy to test any patch or provide any extra log if needed.


--
Regards
Sudip