]> git.ipfire.org Git - thirdparty/zstd.git/commit
[contrib][linux] Fix build with CONFIG_WERROR
authorAlexander Lobakin <alobakin@pm.me>
Tue, 21 Sep 2021 18:06:49 +0000 (20:06 +0200)
committerAlexander Lobakin <alobakin@pm.me>
Thu, 23 Sep 2021 14:39:10 +0000 (16:39 +0200)
commite6d62bbfe12698d67a15dd8b7628ef8f38e4b30b
tree744f7d2b73b975b8cefc8241025573b0cf512a5b
parentc7afbec4c1a419b95d831a89bd366deec2b9ee99
[contrib][linux] Fix build with CONFIG_WERROR

Linux 5.15 introduces a new Kconfig option, CONFIG_WERROR, which
forces -Werror for the entire kernel.
Current in-kernel ZSTD implementation uses functions deprecated
in 1.5.0, and thus fails on -Wdeprecated-declarations.
Turn this particular error into warning to be able to build the
kernel with CONFIG_WERROR. I'm not disabling them completely to
make sure they'll be visible and [hopefully] fixed sooner or later.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
contrib/linux-kernel/linux.mk