Skip to content

Commit ecdd7df

Browse files
rddunlaphdeller
authored andcommitted
fbdev: nvidiafb: add depends on HAS_IOPORT
The nvidiafb driver uses inb()/outb() without depending on HAS_IOPORT, which leads to build errors since kernel v6.13-rc1: commit 6f043e7 ("asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n") Add the HAS_IOPORT dependency to prevent the build errors. (Found in ARCH=um allmodconfig builds) drivers/video/fbdev/nvidia/nv_accel.c: In function ‘NVDmaWait’: include/asm-generic/io.h:596:15: error: call to ‘_outb’ declared with attribute error: outb() requires CONFIG_HAS_IOPORT 596 | #define _outb _outb Signed-off-by: Randy Dunlap <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Niklas Schnelle <[email protected]> Cc: Antonino Daplas <[email protected]> Cc: Helge Deller <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] # v6.13+ Signed-off-by: Helge Deller <[email protected]>
1 parent 2662c7a commit ecdd7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ config FB_ATMEL
660660

661661
config FB_NVIDIA
662662
tristate "nVidia Framebuffer Support"
663-
depends on FB && PCI
663+
depends on FB && PCI && HAS_IOPORT
664664
select FB_CFB_FILLRECT
665665
select FB_CFB_COPYAREA
666666
select FB_CFB_IMAGEBLIT

0 commit comments

Comments
 (0)