Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836129

Summary: net-misc/r8168: error: implicit declaration of function 'PDE_DATA'
Product: Gentoo Linux Reporter: Peter Levine <plevine457>
Component: Current packagesAssignee: Pacho Ramos <pacho>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, plevine457
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: r8168-8.049.02-5.17-fix.patch

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(-)