Comments (4)
Hi, Sylvain, I assume you've tested the code to make sure it works?
from xtrx_linux_pcie_drv.
hi, @smunaut, since the change of struct timer_list
in linux/timer.h
started from 4.15 [1], I would like to suggest :
- adding `#include <linux/version.h>" at head of the file.
- 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.
@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.
The problem is resolved by removing the timer entirely
from xtrx_linux_pcie_drv.
Related Issues (8)
- Compilation fails with the kernel versions 4.11 and later HOT 6
- Copy Paste Error Mapping Bar 1
- DKMS build fails on a Linux 6.3.3-surface based system due to a read-only vm_area_struct member. HOT 4
- Compilation errors on gcc 7.3 on arm64 4.4.132 kernel. HOT 11
- EspressoBin (aarch64): SPI IRQ error 11 (3) HOT 7
- Encountering errors on transfers every 90 seconds or so HOT 4
- Bus Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xtrx_linux_pcie_drv.