From b82372842038af7714770b1d3fc5fcae46fe9974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20de=20Giessen?= Date: Wed, 16 Apr 2025 18:17:21 +0200 Subject: [PATCH] lfs_crc should be static if LFS_CRC is defined --- lfs_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lfs_util.h b/lfs_util.h index 0aec4885..0a0668a4 100644 --- a/lfs_util.h +++ b/lfs_util.h @@ -231,8 +231,8 @@ static inline uint32_t lfs_tobe32(uint32_t a) { // Calculate CRC-32 with polynomial = 0x04c11db7 #ifdef LFS_CRC -uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) { - return LFS_CRC(crc, buffer, size) +static inline uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) { + return LFS_CRC(crc, buffer, size); } #else uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size);