git: 36ca21722c27 - main - LinuxKPI: skbuff: make csum_unfold return __wsum
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Jun 2025 18:37:41 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=36ca21722c2700e00e41444a29aeabf246eea90d
commit 36ca21722c2700e00e41444a29aeabf246eea90d
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-05-10 01:39:25 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-06-03 18:35:10 +0000
LinuxKPI: skbuff: make csum_unfold return __wsum
Given the internal field now stores a __wsum csum (after we added
the type) also make sure csum_unfold() returns a __wsum.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Fixes: 59481c7db234
---
sys/compat/linuxkpi/common/include/linux/skbuff.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index 8fe6bf158bc6..422bf99929c2 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -1046,7 +1046,7 @@ skb_orphan(struct sk_buff *skb)
SKB_TODO();
}
-static inline __sum16
+static inline __wsum
csum_unfold(__sum16 sum)
{
return (sum);