lkml.org 
[lkml]   [2023]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v5 03/44] char: add HAS_IOPORT dependencies
    Date
    In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
    not being declared. We thus need to add HAS_IOPORT as dependency for
    those drivers using them.

    Co-developed-by: Arnd Bergmann <arnd@kernel.org>
    Signed-off-by: Arnd Bergmann <arnd@kernel.org>
    Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
    ---
    drivers/char/Kconfig | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
    index 801d6c83f896..625af75833fc 100644
    --- a/drivers/char/Kconfig
    +++ b/drivers/char/Kconfig
    @@ -34,6 +34,7 @@ config TTY_PRINTK_LEVEL
    config PRINTER
    tristate "Parallel printer support"
    depends on PARPORT
    + depends on HAS_IOPORT || PARPORT_NOT_PC
    help
    If you intend to attach a printer to the parallel port of your Linux
    box (as opposed to using a serial printer; if the connector at the
    @@ -340,7 +341,7 @@ config NVRAM

    config DEVPORT
    bool "/dev/port character device"
    - depends on ISA || PCI
    + depends on HAS_IOPORT
    default y
    help
    Say Y here if you want to support the /dev/port device. The /dev/port
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-05-22 12:52    [W:6.398 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site