]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lib/xxhash: remove more unused xxh functions
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 24 Oct 2025 20:51:20 +0000 (21:51 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 12 Nov 2025 18:00:17 +0000 (10:00 -0800)
commita0b8c6af29a4be3ca2ff9a95cf71e54db5d73e65
treedfa2532793f26f992723ee78c74c9f36f92bb56b
parent6c2e6e2c1af1809d1d9cdbd50ac80f54f5995bdb
lib/xxhash: remove more unused xxh functions

xxh32_reset() and xxh32_copy_state() are unused, and with those gone, the
xxh32_state struct is also unused.

xxh64_copy_state() is also unused.

Remove them all.

(Also fixes a comment above the xxh64_state that referred to it as
xxh32_state).

Link: https://lkml.kernel.org/r/20251024205120.454508-1-linux@treblig.org
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/xxhash.h
lib/xxhash.c