]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: kpc2000: Fix build error without CONFIG_UIO
authorYueHaibing <yuehaibing@huawei.com>
Fri, 10 May 2019 13:47:24 +0000 (21:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 07:18:45 +0000 (09:18 +0200)
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 <hulkci@huawei.com>
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 7dc7967fc39a ("staging: kpc2000: add initial set of Daktronics drivers")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/Kconfig

index fb5922928f47eac7b74e84d0570550cc2002f9a4..febe4f8b30e5352cfe27eb43ef8add4eb75781d8 100644 (file)
@@ -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