Patch "misc: open-dice: make OPEN_DICE depend on HAS_IOMEM" has been added to the 6.1-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

    misc: open-dice: make OPEN_DICE depend on HAS_IOMEM

to the 6.1-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:
     misc-open-dice-make-open_dice-depend-on-has_iomem.patch
and it can be found in the queue-6.1 subdirectory.

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



commit fbe1b9122017503fe8b682ab3f42c33e540f0d6b
Author: Baoquan He <bhe@xxxxxxxxxx>
Date:   Fri Jul 7 21:58:47 2023 +0800

    misc: open-dice: make OPEN_DICE depend on HAS_IOMEM
    
    [ Upstream commit aefc8b57af7787c80686e49a5841e9289cb11f53 ]
    
    On s390 systems (aka mainframes), it has classic channel devices for
    networking and permanent storage that are currently even more common
    than PCI devices. Hence it could have a fully functional s390 kernel
    with CONFIG_PCI=n, then the relevant iomem mapping functions
    [including ioremap(), devm_ioremap(), etc.] are not available.
    
    Here let OPEN_DICE depend on HAS_IOMEM so that it won't be built
    to cause below compiling error if PCI is unset:
    
    ------
    ERROR: modpost: "devm_memremap" [drivers/misc/open-dice.ko] undefined!
    ERROR: modpost: "devm_memunmap" [drivers/misc/open-dice.ko] undefined!
    ------
    
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@xxxxxxxxx/
    Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
    Cc: Derek Kiernan <derek.kiernan@xxxxxxx>
    Cc: Dragan Cvetic <dragan.cvetic@xxxxxxx>
    Cc: Arnd Bergmann <arnd@xxxxxxxx>
    Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230707135852.24292-4-bhe@xxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 358ad56f65245..0cef98319f0e5 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -474,6 +474,7 @@ config HISI_HIKEY_USB
 config OPEN_DICE
 	tristate "Open Profile for DICE driver"
 	depends on OF_RESERVED_MEM
+	depends on HAS_IOMEM
 	help
 	  This driver exposes a DICE reserved memory region to userspace via
 	  a character device. The memory region contains Compound Device



[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