[PATCH 00/12] rtc: various improvements

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Oct 2 01:05:17 PDT 2023


Hello,

the section mismatch check will get more strict soon. See
https://lore.kernel.org/linux-kbuild/20230930165204.2478282-1-u.kleine-koenig@pengutronix.de
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.

While touching these drivers I noticed that my coccinelle patch that
converts platform drivers to .remove_new failed to match for drivers
using

	.remove = __exit_p(...),

So I added these preparing patches on top. A separate series would have
been justified, too, but as the patches conflict with each other I kept
them in a single series.

Best regards
Uwe

Uwe Kleine-König (12):
  rtc: imxdi: Soften dependencies for improved compile coverage
  rtc: at91rm9200: Mark driver struct with __refdata to prevent section
    mismatch warning
  rtc: imxdi: Mark driver struct with __refdata to prevent section
    mismatch warning
  rtc: mv: Mark driver struct with __refdata to prevent section mismatch
    warning
  rtc: pxa: Mark driver struct with __refdata to prevent section
    mismatch warning
  rtc: sh: Mark driver struct with __refdata to prevent section mismatch
    warning
  rtc: pcap: Drop no-op remove function
  rtc: at91rm9200: Convert to platform remove callback returning void
  rtc: imxdi: Convert to platform remove callback returning void
  rtc: mv: Convert to platform remove callback returning void
  rtc: pxa: Convert to platform remove callback returning void
  rtc: sh: Convert to platform remove callback returning void

 drivers/rtc/Kconfig          |  2 +-
 drivers/rtc/rtc-at91rm9200.c | 14 +++++++++-----
 drivers/rtc/rtc-imxdi.c      | 14 +++++++++-----
 drivers/rtc/rtc-mv.c         | 14 +++++++++-----
 drivers/rtc/rtc-pcap.c       |  6 ------
 drivers/rtc/rtc-pxa.c        | 13 +++++++++----
 drivers/rtc/rtc-sh.c         | 14 +++++++++-----
 7 files changed, 46 insertions(+), 31 deletions(-)

base-commit: 6465e260f48790807eef06b583b38ca9789b6072
-- 
2.40.1




More information about the linux-arm-kernel mailing list