root@*/Desktop/BIT/pm_pcie_driver# make make -C /lib/modules/4.18.0-15-generic/build SUBDIRS=/home/tr44/Desktop/BIT/pm_pcie_driver modules make[1]: Entering directory '/usr/src/linux-headers-4.18.0-15-generic' CC [M] /home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.o /home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.c: In function ‘char_dev_read’: /home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.c:422:11: error: implicit declaration of function ‘copy_to_user’; did you mean ‘raw_copy_to_user’? [-Werror=implicit-function-declaration] nbytes = copy_to_user(buf, res->addr_rd, res->currentConfig.xferBufferSize); ^~~~~~~~~~~~ raw_copy_to_user /home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.c: In function ‘char_dev_write’: /home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.c:740:11: error: implicit declaration of function ‘copy_from_user’; did you mean ‘raw_copy_from_user’? [-Werror=implicit-function-declaration] nbytes = copy_from_user(res->addr_wr, buf, lbuf ); ^~~~~~~~~~~~~~ raw_copy_from_user In file included from /home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.c:25:0: At top level: /home/tr44/Desktop/BIT/pm_pcie_driver/pcie_common.h:115:16: warning: ‘ADCGain’ defined but not used [-Wunused-variable] static double ADCGain[6][2] = { ^~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.o' failed make[2]: *** [/home/tr44/Desktop/BIT/pm_pcie_driver/pm_pcie_driver.o] Error 1 Makefile:1534: recipe for target '_module_/home/tr44/Desktop/BIT/pm_pcie_driver' failed make[1]: *** [_module_/home/tr44/Desktop/BIT/pm_pcie_driver] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.18.0-15-generic' Makefile:14: recipe for target 'default' failed make: *** [default] Error 2 root@*/Desktop/BIT/pm_pcie_driver#