On Sat, 18 Nov 2023 18:22:00 +0900, Akinobu Mita wrote: > Fix the following warning when CONFIG_I2C is not set but CONFIG_SPI_MASTER > is set. > > warning: 'ds3232_pm_ops' defined but not used [-Wunused-const-variable=] > > 'ds3232_pm_ops' is only used by rtc-ds3232 i2c driver, so move the device > PM callbacks inside #if IS_ENABLED(CONFIG_I2C). > > [...] Applied, thanks! [1/1] rtc: ds3232: avoid unused-const-variable warning commit: 3628d999e31e2e31b51f78b0f68e91275854c179 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com