enjoy-digital / litepcie

Small footprint and configurable PCIe core
Other
468 stars 116 forks source link

Linux kernel space software does not compile #16

Closed nanortemis closed 5 years ago

nanortemis commented 5 years ago

Hi,

I'm getting this error:

make -C /lib/modules/4.20.0-042000-generic/build M=/home/nanortemis/Tools/litex/litex/litepcie/litepcie/software/linux/kernel modules
make[1]: Entering directory '/usr/src/linux-headers-4.20.0-042000-generic'
  CC [M]  /home/nanortemis/Tools/litex/litex/litepcie/litepcie/software/linux/kernel/main.o
/home/nanortemis/Tools/litex/litex/litepcie/litepcie/software/linux/kernel/main.c: In function ‘litepcie_dma_wait’:
/home/nanortemis/Tools/litex/litex/litepcie/litepcie/software/linux/kernel/main.c:292:13: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
         if (signal_pending(current)) {
             ^~~~~~~~~~~~~~
             timer_pending
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:292: /home/nanortemis/Tools/litex/litex/litepcie/litepcie/software/linux/kernel/main.o] Error 1
make[1]: *** [Makefile:1563: _module_/home/nanortemis/Tools/litex/litex/litepcie/litepcie/software/linux/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.20.0-042000-generic'
make: *** [Makefile:12: litepcie.ko] Error 2

a quick solution can be found here: https://github.com/diederikdehaas/rtl8812AU/issues/75#issuecomment-318832002

enjoy-digital commented 5 years ago

Thanks, i integrated the solution with https://github.com/enjoy-digital/litepcie/commit/14acea397f45837b2d04d003fbb10dad6509adcf.