mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 10:31:08 +00:00
selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off
Linux 6.6 does not have an opt_ipproto_off variable in gro.c at all (it
was added in later kernel versions), so attempting to initialize one
breaks the build.
Fixes: c80d53c484
("selftests/net: fix uninitialized variables")
Cc: <stable@vger.kernel.org> # 6.6
Reported-by: Ignat Korchagin <ignat@cloudflare.com>
Closes: https://lore.kernel.org/all/8B1717DB-8C4A-47EE-B28C-170B630C4639@cloudflare.com/#t
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
11078e2d11
commit
6b05ad408f
1 changed files with 0 additions and 3 deletions
|
@ -113,9 +113,6 @@ static void setup_sock_filter(int fd)
|
|||
next_off = offsetof(struct ipv6hdr, nexthdr);
|
||||
ipproto_off = ETH_HLEN + next_off;
|
||||
|
||||
/* Overridden later if exthdrs are used: */
|
||||
opt_ipproto_off = ipproto_off;
|
||||
|
||||
if (strcmp(testname, "ip") == 0) {
|
||||
if (proto == PF_INET)
|
||||
optlen = sizeof(struct ip_timestamp);
|
||||
|
|
Loading…
Reference in a new issue