From a28d27f66e99a39df2573c78fa1e295646fd3606 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 18 Jun 2024 11:27:40 +0000 Subject: [PATCH] ANDROID: fix crc issue in net/ipv4/inet_fragment.c In commit 7d0567842b78 ("inet: inet_defrag: prevent sk release while still in use") a new include file is added, which messes up the crc generation of some of the exported symbols in net/ipv4/inet_fragment.c. Fix this up by only including it when NOT generating the crc values. Bug: 161946584 Fixes: 7d0567842b78 ("inet: inet_defrag: prevent sk release while still in use") Change-Id: Ifef668d676faed4c9b96a481807b7d000e5c39db Signed-off-by: Greg Kroah-Hartman --- net/ipv4/inet_fragment.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c index 834cdc57755f..63968d081d96 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -24,7 +24,9 @@ #include #include +#ifndef __GENKSYMS__ #include "../core/sock_destructor.h" +#endif /* Use skb->cb to track consecutive/adjacent fragments coming at * the end of the queue. Nodes in the rb-tree queue will