1. 13 Feb, 2019 1 commit
  2. 18 Jan, 2019 1 commit
  3. 15 Nov, 2018 3 commits
    • Gwenhael Goavec-Merou's avatar
      spec-sw: kernel: spec-pci: use pci_alloc_irq_vectors with kernel > 4.11 · ed527040
      Gwenhael Goavec-Merou authored
      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: 's 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
      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: 's 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
      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: 's avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
      a0b90f50
  4. 11 Oct, 2018 1 commit
    • 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
      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: 's avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
      aa8d5d99
  5. 31 Jan, 2018 1 commit
  6. 10 Oct, 2017 1 commit
  7. 27 Jun, 2017 1 commit
  8. 28 Feb, 2017 5 commits
  9. 17 Jul, 2016 1 commit
    • Dimitris Lampridis's avatar
      kernel: fix kernel >4.4 compatibility · 4fb9a54c
      Dimitris Lampridis authored
      Compiling on kernel >=4.5 produces the following error:
      
        CC [M]  spec-sw/kernel/wr-nic-gpio.o
      spec-sw/kernel/wr-nic-gpio.c: In function ‘gc_to_fmc’:
      spec-sw/kernel/wr-nic-gpio.c:20:25: error: ‘struct gpio_chip’ has no member named ‘dev’
        struct device *dev = gc->dev;
                               ^
      spec-sw/kernel/wr-nic-gpio.c: In function ‘wrn_gpio_init’:
      spec-sw/kernel/wr-nic-gpio.c:75:4: error: ‘struct gpio_chip’ has no member named ‘dev’
        gc->dev = &fmc->dev;
          ^
      
      This is due to a change in struct gpio_chip introduced in 4.5,
      where the "dev" field was renamed to "parent".
      
      58383c7 gpio: change member .dev to .parent
      
      This patch makes our code compatible with modern kernel versions
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      Signed-off-by: 's avatarDimitris Lampridis <Dimitris.Lampridis@cern.ch>
      4fb9a54c
  10. 03 Mar, 2016 2 commits
  11. 10 Feb, 2016 5 commits
  12. 20 Nov, 2015 1 commit
  13. 13 Nov, 2015 9 commits
  14. 25 Aug, 2015 1 commit
  15. 07 May, 2015 2 commits
  16. 24 Feb, 2015 1 commit
    • Federico Vaga's avatar
      wr-nic-gpio: do not check on gpiochip_remove · 2b85fda2
      Federico Vaga authored
      Since kernel 3.18 the gpiochip_remove function return void and not an
      error code as before. In case the gpiochip is removed while there is a
      requested gpio, the kernel will print an error message.
      
      By applying this patch without any control on the kernel version we are
      going to loose the error message in case of trouble with old kernels
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      2b85fda2
  17. 20 Jan, 2015 1 commit
  18. 18 Sep, 2014 1 commit
  19. 13 Aug, 2014 2 commits