]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/crc32: don't bother with pure and const function attributes
authorEric Biggers <ebiggers@google.com>
Sat, 8 Feb 2025 02:49:08 +0000 (18:49 -0800)
committerEric Biggers <ebiggers@google.com>
Sun, 9 Feb 2025 04:06:30 +0000 (20:06 -0800)
commitbc2736fe7e0b03866b4cb2da320b1aa705b193c0
treef2fee556f49c364aa2c9f3da92485ccc34324535
parent2d7da4f6b0c0445fa0e1b61fd95fa8111eae7fdd
lib/crc32: don't bother with pure and const function attributes

Drop the use of __pure and __attribute_const__ from the CRC32 library
functions that had them.  Both of these are unusual optimizations that
don't help properly written code.  They seem more likely to cause
problems than have any real benefit.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250208024911.14936-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/arm64/lib/crc32-glue.c
arch/riscv/lib/crc32-riscv.c
include/linux/crc32.h
lib/crc32.c