Patch "watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     watchdog-add-has_ioport-dependency-for-sbc8360-and-s.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 826d2ef9a29105a8bb02ada942071152d6b22bf3
Author: Niklas Schnelle <schnelle@xxxxxxxxxxxxx>
Date:   Mon Oct 14 13:25:42 2024 +0200

    watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240
    
    [ Upstream commit d4d3125a3452a54acca69050be67b87ee2900e77 ]
    
    Both drivers use I/O port accesses without declaring a dependency on
    CONFIG_HAS_IOPORT. For sbc8360_wdt this causes a compile error on UML
    once inb()/outb() helpers become conditional.
    
    For sbc7240_wdt this causes no such errors with UML because this driver
    depends on both x86_32 and !UML. Nevertheless add HAS_IOPORT as
    a dependency for both drivers to be explicit and drop the !UML
    dependency for sbc7240_wdt as it is now redundant since UML implies no
    HAS_IOPORT.
    
    Fixes: 52df67b6b313 ("watchdog: add HAS_IOPORT dependencies")
    Signed-off-by: Niklas Schnelle <schnelle@xxxxxxxxxxxxx>
    Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 684b9fe84fff5..94c96bcfefe34 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1509,7 +1509,7 @@ config 60XX_WDT
 
 config SBC8360_WDT
 	tristate "SBC8360 Watchdog Timer"
-	depends on X86_32
+	depends on X86_32 && HAS_IOPORT
 	help
 
 	  This is the driver for the hardware watchdog on the SBC8360 Single
@@ -1522,7 +1522,7 @@ config SBC8360_WDT
 
 config SBC7240_WDT
 	tristate "SBC Nano 7240 Watchdog Timer"
-	depends on X86_32 && !UML
+	depends on X86_32 && HAS_IOPORT
 	help
 	  This is the driver for the hardware watchdog found on the IEI
 	  single board computers EPIC Nano 7240 (and likely others). This




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux