Code Monkey home page Code Monkey logo

Comments (4)

chemeris avatar chemeris commented on August 15, 2024

Hi, Sylvain, I assume you've tested the code to make sure it works?

from xtrx_linux_pcie_drv.

brchiu avatar brchiu commented on August 15, 2024

hi, @smunaut, since the change of struct timer_list in linux/timer.h started from 4.15 [1], I would like to suggest :

  1. adding `#include <linux/version.h>" at head of the file.
  2. use #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)) to mitigate the transition between old and new kernels.
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))
// code for kernel after and include 14.15
#else
// code for kernel before 4.15
#endif

[1]: The data field inside struct timer_list was removed from kernel 14.5-rc1 :
https://elixir.bootlin.com/linux/v4.15-rc1/source/include/linux/timer.h

from xtrx_linux_pcie_drv.

smunaut avatar smunaut commented on August 15, 2024

@chemeris Well, to be honest I'm not entirely sure what that timer is for :/ But what I know is that I captured samples with the driver as I submitted and I can also use minicom to talk to the GPS.

@brchiu it doesn't matter when the field was removed is irrelevant, it's when the new API was added that is. And that was added in 4.14. And I hate plastering #ifdef all over ...

from xtrx_linux_pcie_drv.

sergforce avatar sergforce commented on August 15, 2024

The problem is resolved by removing the timer entirely

from xtrx_linux_pcie_drv.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.