/dev/port: don't compile file operations without CONFIG_DEVPORT
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 4 Apr 2024 11:49:17 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2024 13:26:55 +0000 (15:26 +0200)
commitf0a816fb12dadd21326a7c0e54e3253f69d895d5
treea68de960d76e7d1143fc11a77b2f23009b0802e3
parent1d6b84d29779f84f3108acc90681c372a2f70a24
/dev/port: don't compile file operations without CONFIG_DEVPORT

In the future inb() and friends will not be available when compiling
with CONFIG_HAS_IOPORT=n so we must only try to access them here if
CONFIG_DEVPORT is set which depends on HAS_IOPORT.

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>
Link: https://lore.kernel.org/r/20240404114917.3627747-2-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/mem.c