From: YueHaibing Date: Fri, 10 May 2019 13:47:24 +0000 (+0800) Subject: staging: kpc2000: Fix build error without CONFIG_UIO X-Git-Tag: v5.2-rc3~22^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4c596ebf62760b89ec3d0a2cbc94e2632395eec;p=thirdparty%2Fkernel%2Flinux.git staging: kpc2000: Fix build error without CONFIG_UIO Fix gcc build error while CONFIG_UIO is not set ERROR: "uio_unregister_device" [drivers/staging/kpc2000/kpc2000/kpc2000.ko] undefined! ERROR: "__uio_register_device" [drivers/staging/kpc2000/kpc2000/kpc2000.ko] undefined! Add UIO Kconfig dependency to fix this. Reported-by: Hulk Robot Reported-by: kbuild test robot Fixes: 7dc7967fc39a ("staging: kpc2000: add initial set of Daktronics drivers") Signed-off-by: YueHaibing Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/kpc2000/Kconfig b/drivers/staging/kpc2000/Kconfig index fb5922928f47e..febe4f8b30e53 100644 --- a/drivers/staging/kpc2000/Kconfig +++ b/drivers/staging/kpc2000/Kconfig @@ -3,6 +3,7 @@ config KPC2000 bool "Daktronics KPC Device support" depends on PCI + depends on UIO help Select this if you wish to use the Daktronics KPC PCI devices