aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2025-02-07 18:49:07 -0800
committerEric Biggers <ebiggers@google.com>2025-02-08 20:06:30 -0800
commit2d7da4f6b0c0445fa0e1b61fd95fa8111eae7fdd (patch)
tree691f25a17c3203bf7b947d8dd189fb8a9eee474b /tools/perf/scripts/python/export-to-postgresql.py
parentmips/crc32: remove unused enums (diff)
downloadlinux-rng-2d7da4f6b0c0445fa0e1b61fd95fa8111eae7fdd.tar.xz
linux-rng-2d7da4f6b0c0445fa0e1b61fd95fa8111eae7fdd.zip
lib/crc32: use void pointer for data
Update crc32_le(), crc32_be(), and __crc32c_le() to take the data as a 'const void *' instead of 'const u8 *'. This makes them slightly easier to use, as it can eliminate the need for casts in the calling code. It's the only pointer argument, so there is no possibility for confusion with another pointer argument. Also, some of the CRC library functions, for example crc32c() and crc64_be(), already used 'const void *'. Let's standardize on that, as it seems like a better choice. The underlying base and arch functions continue to use 'const u8 *', as that is often more convenient for the implementation. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250208024911.14936-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions