sos_filter: fix overflows_int32 (#6976)

Modify the inline function overflows_int32 to static inline
Inline functions cannot be debugged in -O mode
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653

Signed-off-by: Findlay Feng <i@fengch.me>
This commit is contained in:
Findlay Feng 2025-07-11 23:08:35 +08:00 committed by GitHub
parent 697c6e8d28
commit 993cec0891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ struct sos_filter {
struct sos_filter_section filter[0];
};
inline uint8_t
static inline uint8_t
overflows_int32(int64_t value) {
return value > (int64_t)INT32_MAX || value < (int64_t)INT32_MIN;
}