]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa5a182bc030915de64ca871024b82070cc0c373
tree3c6b6bdb1af0439e9f4343fbb690938ca7636b77
parente1dd598e8f7c65dc655627750363045e29683909
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 <hulkci@huawei.com>
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: a11bdb74a5f2 ("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