[PATCH] rtc: pic32: allow driver to be compiled with COMPILE_TEST

Brian Masney posted 1 patch 1 month, 3 weeks ago
drivers/rtc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rtc: pic32: allow driver to be compiled with COMPILE_TEST
Posted by Brian Masney 1 month, 3 weeks ago
This driver currently only supports builds against a PIC32 target. Now
that commit ed65ae9f6c6b ("rtc: pic32: update include to use pic32.h
from platform_data") is merged, it's possible to compile this driver on
other architectures.

To avoid future breakage of this driver in the future, let's update the
Kconfig so that it can be built with COMPILE_TEST enabled on all
architectures.

Signed-off-by: Brian Masney <bmasney@redhat.com>
---
 drivers/rtc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index b46ac73a2124e62f9232e9667da91fcb7ce36a62..364afc73f8abd2ade7e7570ba59c0f1aa0bbe78e 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1986,7 +1986,7 @@ config RTC_DRV_XGENE
 
 config RTC_DRV_PIC32
 	tristate "Microchip PIC32 RTC"
-	depends on MACH_PIC32
+	depends on MACH_PIC32 || COMPILE_TEST
 	default y
 	help
 	   If you say yes here you get support for the PIC32 RTC module.

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260222-rtc-pic32-fce9ce197535

Best regards,
-- 
Brian Masney <bmasney@redhat.com>
Re: [PATCH] rtc: pic32: allow driver to be compiled with COMPILE_TEST
Posted by Alexandre Belloni 4 days, 9 hours ago
On Sun, 22 Feb 2026 18:30:51 -0500, Brian Masney wrote:
> This driver currently only supports builds against a PIC32 target. Now
> that commit ed65ae9f6c6b ("rtc: pic32: update include to use pic32.h
> from platform_data") is merged, it's possible to compile this driver on
> other architectures.
> 
> To avoid future breakage of this driver in the future, let's update the
> Kconfig so that it can be built with COMPILE_TEST enabled on all
> architectures.
> 
> [...]

Applied, thanks!

[1/1] rtc: pic32: allow driver to be compiled with COMPILE_TEST
      https://git.kernel.org/abelloni/c/095a3e886dd2

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com