diff options
author | Karlson2k (Evgeny Grin) <k2k@narod.ru> | 2023-08-15 17:34:57 +0300 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-08-20 00:31:56 +0200 |
commit | 13f43b73752f9cc8630655794307f7b7f77f97c5 (patch) | |
tree | 9f3c3c9c770a46447d94f59aad9f06858a323403 /net-misc | |
parent | dev-php/pecl-parallel: add 1.2.1 (diff) | |
download | gentoo-13f43b73752f9cc8630655794307f7b7f77f97c5.tar.gz gentoo-13f43b73752f9cc8630655794307f7b7f77f97c5.tar.bz2 gentoo-13f43b73752f9cc8630655794307f7b7f77f97c5.zip |
net-misc/r8168: fixed build with kernel 6.4.10+
Bug: https://bugs.gentoo.org/912242
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/32323
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch | 17 | ||||
-rw-r--r-- | net-misc/r8168/r8168-8.051.02.ebuild | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch b/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch new file mode 100644 index 000000000000..f10b86447971 --- /dev/null +++ b/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch @@ -0,0 +1,17 @@ +Fixed build with kernels 6.4.10+ +Gentoo Bug: https://bugs.gentoo.org/912242 +See also: https://github.com/mtorromeo/r8168/issues/54 + +--- +--- a/src/r8168_n.c 2023-08-13 03:33:06.977422132 +0400 ++++ b/src/r8168_n.c 2023-08-13 03:38:39.767005101 +0400 +@@ -81,6 +81,10 @@ + #include <linux/mdio.h> + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10) ++#include <net/gso.h> ++#endif ++ + #include <asm/io.h> + #include <asm/irq.h> diff --git a/net-misc/r8168/r8168-8.051.02.ebuild b/net-misc/r8168/r8168-8.051.02.ebuild index 1b19ce47db5e..8f0c5b529c63 100644 --- a/net-misc/r8168/r8168-8.051.02.ebuild +++ b/net-misc/r8168/r8168-8.051.02.ebuild @@ -26,6 +26,7 @@ WARNING_R8169="CONFIG_R8169 is enabled. ${P} will not be loaded unless kernel dr PATCHES=( "${FILESDIR}/${PN}-8.051.02-6.1-fix.patch" + "${FILESDIR}/${P}-6.4.10-fix.patch" # bug 912242 ) pkg_setup() { |