1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-04 22:58:46 +02:00

[contrib][linux-kernel] Update test include stubs

Update the test include stubs so they are able to run the current zstd
version in the kernel, so I can compare stack usage.
This commit is contained in:
Nick Terrell
2021-03-12 15:31:38 -08:00
parent d2dd35ae65
commit 49a9e070f5
3 changed files with 12 additions and 3 deletions

View File

@ -12,4 +12,8 @@
#define WARN_ON(x)
#define PTR_ALIGN(p, a) (typeof(p))ALIGN((unsigned long long)(p), (a))
#define ALIGN(x, a) ALIGN_MASK((x), (a) - 1)
#define ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
#endif