Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836129 - net-misc/r8168: error: implicit declaration of function 'PDE_DATA'
Summary: net-misc/r8168: error: implicit declaration of function 'PDE_DATA'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-03-26 05:12 UTC by Peter Levine
Modified: 2022-03-27 09:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
r8168-8.049.02-5.17-fix.patch (r8168-8.049.02-5.17-fix.patch,2.51 KB, patch)
2022-03-26 05:14 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2022-03-26 05:12:06 UTC
Building net-misc/r8168-8.049.02-r1 against linux-5.17.0 fails with:

> ERROR: compile ../../portage/net-misc/r8168-8.049.02-r1/work/r8168-8.049.0 /src/r8168_n.c on localhost failed
> ../../portage/net-misc/r8168-8.049.02-r1/work/r8168-8.049.02/src/r8168_n.c: In function 'rtl8168_proc_open':
> ../../portage/net-misc/r8168-8.049.02-r1/work/r8168-8.049.02 /src/r8168_n.c:1736:50: error: implicit declaration of function 'PDE_DATA'; did you mean 'NODE_DATA'? [-Werror=implicit-function-declaration]
>  1736 |         int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
>       |                                                  ^~~~~~~~
>       |                                                  NODE_DATA



Reproducible: Always
Comment 1 Peter Levine 2022-03-26 05:14:47 UTC
Created attachment 767819 [details, diff]
r8168-8.049.02-5.17-fix.patch
Comment 2 Larry the Git Cow gentoo-dev 2022-03-27 09:30:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13afe46537e99157756939d331bebed49169dfc6

commit 13afe46537e99157756939d331bebed49169dfc6
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-03-27 09:29:07 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-03-27 09:30:47 +0000

    net-misc/r8168: Fix build with kernel 5.17
    
    Thanks-to: Peter Levine
    Closes: https://bugs.gentoo.org/836129
    
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 net-misc/r8168/files/r8168-8.049.02-5.17-fix.patch | 70 ++++++++++++++++++++++
 net-misc/r8168/r8168-8.049.02-r1.ebuild            |  7 ++-
 2 files changed, 75 insertions(+), 2 deletions(-)