]> git.ipfire.org Git - thirdparty/zstd.git/commit
[linux-kernel] Don't inline function in zstd_opt.c
authorNick Terrell <terrelln@fb.com>
Tue, 16 Nov 2021 00:57:00 +0000 (16:57 -0800)
committerNick Terrell <terrelln@fb.com>
Tue, 16 Nov 2021 04:37:58 +0000 (20:37 -0800)
commitb9302410bf3fd066b776deb18b06f37fe290a0dd
tree3a7404c2405ea28bde1a7dea923de7f08f49dbbf
parent0118fe65ff311d7442116e9895839c414535bb8c
[linux-kernel] Don't inline function in zstd_opt.c

The optimal parser is unlikely to be used in the linux kernel in
practice. There is no reason these functions should be force inlined,
since we aren't gaining anything, and are losing build size.

| Compiler | Before (Bytes) | After (Bytes) | Delta (Bytes) |
|----------|----------------|---------------|---------------|
| gcc-11   |        1142090 |        952754 |       -189336 |
| clang-12 |        1228402 |        976290 |       -252112 |

This is a temporary solution pending the resolution of Issue #2862 in
the `dev` branch.
contrib/linux-kernel/Makefile
contrib/linux-kernel/test/macro-test.sh
lib/compress/zstd_opt.c