diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2025-08-15 19:02:40 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2025-08-15 19:06:08 -0700 |
| commit | 5ff74f5f71f83cce3c920cd17940df0fe0401865 (patch) | |
| tree | 58eb742a47cb5442bf58dc2de5ad82bacf70985d /lib/crc/mips | |
| parent | c2a0c5156a40c40edb0cce80ce11c97ab39c67e3 (diff) | |
lib/crc: Drop inline from all *_mod_init_arch() functions
Drop 'inline' from all the *_mod_init_arch() functions so that the
compiler will warn about any bugs where they are unused due to not being
wired up properly. (There are no such bugs currently, so this just
establishes a more robust convention for the future. Of course, these
functions also tend to get inlined anyway, regardless of the keyword.)
Link: https://lore.kernel.org/r/20250816020240.431545-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/crc/mips')
| -rw-r--r-- | lib/crc/mips/crc32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crc/mips/crc32.h b/lib/crc/mips/crc32.h index 11cb272c63a6..3100354a049e 100644 --- a/lib/crc/mips/crc32.h +++ b/lib/crc/mips/crc32.h @@ -148,7 +148,7 @@ static inline u32 crc32c_arch(u32 crc, const u8 *p, size_t len) #define crc32_be_arch crc32_be_base /* not implemented on this arch */ #define crc32_mod_init_arch crc32_mod_init_arch -static inline void crc32_mod_init_arch(void) +static void crc32_mod_init_arch(void) { if (cpu_have_feature(cpu_feature(MIPS_CRC32))) static_branch_enable(&have_crc32); |
