Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile for Linux 4.18 #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Denton-L
Copy link

I don't have the hardware to test on so these changes are only compile-tested.

nf2util.h used to contain several misspellings of "Revision", spelled
"Revsion". Correct the misspellings to silence a warning about implicit
declarations.

Signed-off-by: Denton Liu <[email protected]>
We were using isprint in several places but we didn't include ctype.h.
Include ctype.h to silence implicit declaration warnings.

Signed-off-by: Denton Liu <[email protected]>
gcc was warning about format not being a string literal with no format
arguments. Silence those warnings by doing

    -printf(func())
    +printf("%s", func())

Signed-off-by: Denton Liu <[email protected]>
The kernel headers were updated such that we couldn't compile netfpga
using the new headers.

Update code using preprocessor statements to be compatible with new
headers.

Here is a reference of kernel commits that introduced breaking changes:

4d659fcb20d3 ("Merge branch 'kill_trans_start'", 2016-05-04)
c835a6773314 ("net: set name_assign_type in alloc_netdev()", 2014-07-14)
1ab7b6ac2709 ("ethtool: remove phys_id from ethtool_ops", 2011-04-14)
7ad24ea4bf62 ("net: get rid of SET_ETHTOOL_OPS", 2014-05-11)

Signed-off-by: Denton Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant