]> git.ipfire.org Git - thirdparty/zstd.git/commit
[linux-kernel] Don't inline function in zstd_opt.c 2864/head
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:30 +0000 (20:37 -0800)
commit19eb459da38318eb238560ca6087a46fe5c5bbd0
tree35a4fc7dd31bb11e13e4c41bc1c0b3e79d6f529a
parentddae153947beb03b9c9b64dc0ecf43b37e924e4d
[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 PR #2862 in the
`dev` branch.
contrib/linux-kernel/Makefile
contrib/linux-kernel/test/macro-test.sh
lib/compress/zstd_opt.c