1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

[linux-kernel] Fix assert definition

Backport upstream fix of the assert definition. This code is currently unused, and can be enabled for testing, which is why it wasn't caught.

https://lore.kernel.org/lkml/20230129131436.1343228-1-j.neuschaefer@gmx.net/
This commit is contained in:
Nick Terrell
2023-03-07 15:47:36 -08:00
committed by Nick Terrell
parent 988ce61a0c
commit 6313a58e45

View File

@ -84,7 +84,7 @@ static uint64_t ZSTD_div64(uint64_t dividend, uint32_t divisor) {
#include <linux/kernel.h> #include <linux/kernel.h>
#define assert(x) WARN_ON((x)) #define assert(x) WARN_ON(!(x))
#endif /* ZSTD_DEPS_ASSERT */ #endif /* ZSTD_DEPS_ASSERT */
#endif /* ZSTD_DEPS_NEED_ASSERT */ #endif /* ZSTD_DEPS_NEED_ASSERT */