Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Revert "lib/crc32: Make crc32_be weak for arch override"
Browse files Browse the repository at this point in the history
This reverts commit d6642a3.
  • Loading branch information
mvaisakh committed May 21, 2023
1 parent d6642a3 commit 9923694
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ EXPORT_SYMBOL(__crc32c_le);

u32 __pure crc32_le_base(u32, unsigned char const *, size_t) __alias(crc32_le);
u32 __pure __crc32c_le_base(u32, unsigned char const *, size_t) __alias(__crc32c_le);
u32 __pure crc32_be_base(u32, unsigned char const *, size_t) __alias(crc32_be);

/*
* This multiplies the polynomials x and y modulo the given modulus.
Expand Down Expand Up @@ -333,12 +332,12 @@ static inline u32 __pure crc32_be_generic(u32 crc, unsigned char const *p,
}

#if CRC_BE_BITS == 1
u32 __pure __weak crc32_be(u32 crc, unsigned char const *p, size_t len)
u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len)
{
return crc32_be_generic(crc, p, len, NULL, CRC32_POLY_BE);
}
#else
u32 __pure __weak crc32_be(u32 crc, unsigned char const *p, size_t len)
u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len)
{
return crc32_be_generic(crc, p, len,
(const u32 (*)[256])crc32table_be, CRC32_POLY_BE);
Expand Down

0 comments on commit 9923694

Please sign in to comment.