On Mon, 02 Oct 2023 10:05:17 +0200, Uwe Kleine-König wrote: > the section mismatch check will get more strict soon. See > https://lore.kernel.org/linux-kbuild/20230930165204.2478282-1-u.kleine-koenig@xxxxxxxxxxxxxx > for the details. > > Several rtc drivers that use module_platform_driver_probe() trigger a > warning with the above patch applied. Here they are marked with > __refdata to prevent this warning from triggering. > > [...] Applied, thanks! [01/12] rtc: imxdi: Soften dependencies for improved compile coverage commit: 2e2ad6393b430b643e607d49190e0b2628d5f035 [02/12] rtc: at91rm9200: Mark driver struct with __refdata to prevent section mismatch warning commit: 5dbde0727a515df85b1773a1f6dd301194c763f4 [03/12] rtc: imxdi: Mark driver struct with __refdata to prevent section mismatch warning commit: e6d44306e4fb476835fa7b818f0440c707b12844 [04/12] rtc: mv: Mark driver struct with __refdata to prevent section mismatch warning commit: 5621f28b0122861231057e3f452573a6e8d6a4c1 [05/12] rtc: pxa: Mark driver struct with __refdata to prevent section mismatch warning commit: 47712bc29401240cce89e631e04ba83891c976ee [06/12] rtc: sh: Mark driver struct with __refdata to prevent section mismatch warning commit: 141626dbc2e69150fbd5bf241eba85790d7e95ab [07/12] rtc: pcap: Drop no-op remove function commit: 94a2da3e6b681a970b248927bfb5d7d519bd3924 [08/12] rtc: at91rm9200: Convert to platform remove callback returning void commit: 48bc8830fbed98dff905fdbcaa424d59bb312043 [09/12] rtc: imxdi: Convert to platform remove callback returning void commit: 482ca730a4fc5fe766fb7d86c46c75b171d6efdf [10/12] rtc: mv: Convert to platform remove callback returning void commit: ede66fb37f12737f96b2c1cbccae9c5ccf7be074 [11/12] rtc: pxa: Convert to platform remove callback returning void commit: e288cfe8f25f547a5359a72940e55b3e9a173bb1 [12/12] rtc: sh: Convert to platform remove callback returning void commit: f4d571b31b83127c2263fdf46eebf86f4d9991a2 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com