[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:
parent
d2dd35ae65
commit
49a9e070f5
@ -29,6 +29,7 @@ run-test: test static_test
|
|||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
clean:
|
clean:
|
||||||
|
$(RM) -f $(LINUX_ZSTDLIB)/*.o
|
||||||
$(RM) -f $(LINUX_ZSTDLIB)/**/*.o
|
$(RM) -f $(LINUX_ZSTDLIB)/**/*.o
|
||||||
$(RM) -f *.o *.a
|
$(RM) -f *.o *.a
|
||||||
$(RM) -f test
|
$(RM) -f test
|
||||||
|
@ -14,4 +14,8 @@
|
|||||||
#define inline __inline __attribute__((unused))
|
#define inline __inline __attribute__((unused))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef noinline
|
||||||
|
#define noinline __attribute__((noinline))
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -12,4 +12,8 @@
|
|||||||
|
|
||||||
#define WARN_ON(x)
|
#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
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user