Skip to content
Snippets Groups Projects
  1. Oct 02, 2024
  2. Oct 01, 2024
  3. Sep 23, 2024
  4. Jul 24, 2024
  5. Mar 04, 2019
  6. Feb 13, 2019
  7. Jan 18, 2019
  8. Nov 15, 2018
    • Juan David González Cobas's avatar
      Merge branch 'updates-4.15' · a5cbe2b0
      Juan David González Cobas authored
      a5cbe2b0
    • Gwenhael Goavec-Merou's avatar
      spec-sw: kernel: spec-pci: use pci_alloc_irq_vectors with kernel > 4.11 · ed527040
      Gwenhael Goavec-Merou authored and Juan David González Cobas's avatar Juan David González Cobas committed
      
      since 4.11 pci_enable_msi_exact is no more available and fail with :
      
      spec-sw/kernel/spec-pci.c: In function 'spec_probe':
      spec-sw/kernel/spec-pci.c:225:9: error: implicit declaration of function 'pci_enable_msi_exact'; did you mean 'pci_enable_msix_exact'? [-Werror=implicit-function-declaration]
         ret = pci_enable_msi_exact(pdev, 1);
               ^~~~~~~~~~~~~~~~~~~~
               pci_enable_msix_exact
      cc1: some warnings being treated as errors
      make[5]: *** [/usr/src/linux-headers-4.18.0-2-common/scripts/Makefile.build:323: spec-sw/kernel/spec-pci.o] Error 1
      make[4]: *** [/usr/src/linux-headers-4.18.0-2-common/Makefile:1531: _module_spec-sw/kernel] Error 2
      make[3]: *** [Makefile:146: sub-make] Error 2
      make[2]: *** [Makefile:8: all] Error 2
      make[2]: Leaving directory '/usr/src/linux-headers-4.18.0-2-amd64'
      make[1]: *** [Makefile:20: all] Error 2
      make[1]: Leaving directory 'spec-sw/kernel'
      make: *** [Makefile:28: kernel] Error 2
      
      This patch add preprocessor case to detect kernel version.
      For kernel > 4.11 pci_alloc_irq_vectors is use instead of pci_enable_msi_exact
      and pci_free_irq_vectors instead of pci_disable_msi.
      
      Signed-off-by: default avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
      ed527040
    • Gwenhael Goavec-Merou's avatar
      spec-sw: kernel: nic-core: last_rx is no more available since kernel > 4.11 · b45d71b7
      Gwenhael Goavec-Merou authored and Juan David González Cobas's avatar Juan David González Cobas committed
      struct net_device has no more last_rx. According to [1] this line must be
      simply supressed for kernel > 4.11 to avoid build failure like :
      
      spec-sw/kernel/wr_nic/nic-core.c: In function '__wrn_rx_descriptor':
      spec-sw/kernel/wr_nic/nic-core.c:428:5: error: 'struct net_device' has no member named 'last_rx'
        dev->last_rx = jiffies;
           ^~
      make[5]: *** [/usr/src/linux-headers-4.18.0-2-common/scripts/Makefile.build:323: spec-sw/kernel/wr_nic/nic-core.o] Error 1
      make[4]: *** [/usr/src/linux-headers-4.18.0-2-common/Makefile:1531: _module_spec-sw/kernel] Error 2
      make[3]: *** [Makefile:146: sub-make] Error 2
      make[2]: *** [Makefile:8: all] Error 2
      make[2]: Leaving directory '/usr/src/linux-headers-4.18.0-2-amd64'
      make[1]: *** [Makefile:20: all] Error 2
      make[1]: Leaving directory 'spec-sw/kernel'
      make: *** [Makefile:28: kernel] Error 2
      
      [1] https://patchwork.ozlabs.org/patch/716831/
      
      
      
      Signed-off-by: default avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
      b45d71b7
    • Gwenhael Goavec-Merou's avatar
      spec-sw: kernel: wr-nic-dio: signal_pending is define in linux/sched/signal.h with kernel > 4.11 · a0b90f50
      Gwenhael Goavec-Merou authored and Juan David González Cobas's avatar Juan David González Cobas committed
      
      Since 4.11 signal_pending is declared in linux/sched/signal.h. Using
      linux/sched.h result in a build failure :
      
      spec-sw/kernel/wr-nic-dio.c: In function 'wrn_dio_cmd_stamp':
      spec-sw/kernel/wr-nic-dio.c:267:7: 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[5]: *** [/usr/src/linux-headers-4.18.0-2-common/scripts/Makefile.build:323: spec-sw/kernel/wr-nic-dio.o] Error 1
      make[4]: *** [/usr/src/linux-headers-4.18.0-2-common/Makefile:1531: _module_spec-sw/kernel] Error 2
      make[3]: *** [Makefile:146: sub-make] Error 2
      make[2]: *** [Makefile:8: all] Error 2
      make[2]: Leaving directory '/usr/src/linux-headers-4.18.0-2-amd64'
      make[1]: *** [Makefile:20: all] Error 2
      make[1]: Leaving directory 'spec-sw/kernel'
      make: *** [Makefile:28: kernel] Error 2
      
      This patch adds preprocessor to include correct head according to the kernel version.
      
      Signed-off-by: default avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
      a0b90f50
  9. Oct 11, 2018
    • Gwenhael Goavec-Merou's avatar
      kernel: wr_nic: endpoint: use timer_setup instead of setup_timer with kernel > 4.15 · aa8d5d99
      Gwenhael Goavec-Merou authored and Juan David González Cobas's avatar Juan David González Cobas committed
      
      Since kernel 4.15, setup_timer is no more available and compilation fails with :
      make -C kernel
      make[1]: Entering directory '/.../wr-starting-kit/spec-sw/kernel'
      make -C /lib/modules/4.18.0-1-amd64/build M=/.../wr-starting-kit/spec-sw/kernel FMC_BUS_ABS=/.../wr-starting-kit/spec-sw/fmc-bus modules
      make[2]: Entering directory '/usr/src/linux-headers-4.18.0-1-amd64'
        CC [M]  /.../wr-starting-kit/spec-sw/kernel/wr_nic/endpoint.o
      /.../wr-starting-kit/spec-sw/kernel/wr_nic/endpoint.c: In function 'wrn_ep_open':
      /.../wr-starting-kit/spec-sw/kernel/wr_nic/endpoint.c:193:2: error: implicit declaration of function 'setup_timer'; did you mean 'del_timer'? [-Werror=implicit-function-declaration]
        setup_timer(&ep->ep_link_timer, wrn_ep_check_link, timerarg);
        ^~~~~~~~~~~
        del_timer
      cc1: some warnings being treated as errors
      make[5]: *** [/usr/src/linux-headers-4.18.0-1-common/scripts/Makefile.build:323: /.../wr-starting-kit/spec-sw/kernel/wr_nic/endpoint.o] Error 1
      make[4]: *** [/usr/src/linux-headers-4.18.0-1-common/Makefile:1518: _module_/.../wr-starting-kit/spec-sw/kernel] Error 2
      make[3]: *** [Makefile:146: sub-make] Error 2
      make[2]: *** [Makefile:8: all] Error 2
      make[2]: Leaving directory '/usr/src/linux-headers-4.18.0-1-amd64'
      make[1]: *** [Makefile:20: all] Error 2
      make[1]: Leaving directory '/.../wr-starting-kit/spec-sw/kernel'
      make: *** [Makefile:28: kernel] Error 2
      
      This patch add preprocessor case to detect kernel version.
      For kernel > 4.15 timer_setup is use instead of setup_timer and callback is
      adapted to the new need.
      
      Signed-off-by: default avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
      aa8d5d99
  10. Jan 31, 2018
  11. Oct 10, 2017
  12. Jun 27, 2017
  13. Feb 28, 2017
  14. Jul 17, 2016
  15. Mar 03, 2016
  16. Feb 10, 2016
  17. Dec 01, 2015
  18. Nov 30, 2015
  19. Nov 20, 2015
  20. Nov 13, 2015