watchdog: pic32: allow two drivers to be compiled on all architectures with COMPILE_TEST
cover watchdog: pic32: allow two drivers to be compiled on all architectures with COMPILE_TEST
While migrating a pic32 clk driver off of a legacy API, I mistakenly broke one of the drivers, and the issue could have been caught with a simple compile test. Now that the dependent patches have been merged into Linus's tree via the MIPS tree, we can now enable COMPILE_TEST for all of pic32 drivers in this subsystem.
---
Brian Masney (2):
watchdog: pic32-wdt: allow driver to be compiled on all architectures with COMPILE_TEST
watchdog: pic32-dmt: allow driver to be compiled on all architectures with COMPILE_TEST
drivers/watchdog/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260222-watchdog-pic32-001b94deace3
Best regards,
Signature · 1 line
Brian Masney <[email protected]>
PATCH 1/2 watchdog: pic32-wdt: allow driver to be compiled on all architectures with COMPILE_TEST
This driver currently only supports builds against a PIC32 target, or with COMPILE_TEST on MIPS. Now that commit 5aa5879eeebb ("watchdog:
pic32-wdt: 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.
--- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
@@ -2011,7 +2011,7 @@ config MT7621_WDT config PIC32_WDT tristate "Microchip PIC32 hardware watchdog" select WATCHDOG_CORE - depends on MACH_PIC32 || (MIPS && COMPILE_TEST) + depends on MACH_PIC32 || COMPILE_TEST help Watchdog driver for the built in watchdog hardware in a PIC32.
Signature · 1 line
2.53.0
Re: [PATCH 1/2] watchdog: pic32-wdt: allow driver to be compiled on all architectures with COMPILE_TEST
Quoted 10 lines · Brian Masney
This driver currently only supports builds against a PIC32 target, or with
COMPILE_TESTon MIPS. Now that commit5aa5879eeebb("watchdog:
pic32-wdt: update include to usepic32.hfromplatform_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
Kconfigso that it can be built withCOMPILE_TESTenabled on all architectures.Signed-off-by Brian Masney <[email protected]>
Quoted 21 lines
--- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/watchdog/Kconfig +1
-1@@ -2011,7 +2011,7 @@ config MT7621_WDT config PIC32_WDT tristate "Microchip PIC32 hardware watchdog" select WATCHDOG_CORE - depends on MACH_PIC32 || (MIPS && COMPILE_TEST) + depends on MACH_PIC32 || COMPILE_TEST help Watchdog driver for the built in watchdog hardware in a PIC32.Signature · 2 lines
-- 2.53.0
PATCH 2/2 watchdog: pic32-dmt: allow driver to be compiled on all architectures with COMPILE_TEST
In reply to Brian MasneyThis driver currently only supports builds against a PIC32 target, or with COMPILE_TEST on MIPS. Now that commit 0f8a61ca78d6 ("watchdog:
pic32-dmt: 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.
--- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
@@ -2024,7 +2024,7 @@ config PIC32_WDT config PIC32_DMT tristate "Microchip PIC32 Deadman Timer" select WATCHDOG_CORE - depends on MACH_PIC32 || (MIPS && COMPILE_TEST) + depends on MACH_PIC32 || COMPILE_TEST help Watchdog driver for PIC32 instruction fetch counting timer. This specific timer is typically be used in mission critical and safety
Signature · 1 line
2.53.0
Re: [PATCH 2/2] watchdog: pic32-dmt: allow driver to be compiled on all architectures with COMPILE_TEST
Quoted 10 lines · Brian Masney
This driver currently only supports builds against a PIC32 target, or with
COMPILE_TESTon MIPS. Now that commit0f8a61ca78d6("watchdog:
pic32-dmt: update include to usepic32.hfromplatform_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
Kconfigso that it can be built withCOMPILE_TESTenabled on all architectures.Signed-off-by Brian Masney <[email protected]>
Quoted 21 lines
--- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/watchdog/Kconfig +1
-1@@ -2024,7 +2024,7 @@ config PIC32_WDT config PIC32_DMT tristate "Microchip PIC32 Deadman Timer" select WATCHDOG_CORE - depends on MACH_PIC32 || (MIPS && COMPILE_TEST) + depends on MACH_PIC32 || COMPILE_TEST help Watchdog driver for PIC32 instruction fetch counting timer. This specific timer is typically be used in mission critical and safetySignature · 2 lines
-- 2.53.0