diff options
| author | John Johansen <john.johansen@canonical.com> | 2026-08-02 23:16:21 -0700 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-08-02 23:22:59 -0700 |
| commit | efede141dc86279e663ac8c28f61c19cf7e36c84 (patch) | |
| tree | 2c48e852943b7f8d4e02f6011c45bd0866eb48b0 /tools/perf/scripts | |
| parent | b0c2e98d291b9db03dcbaddd38d3a33428b098a8 (diff) | |
apparmor: Fix warning: 'decompress_zstd' defined but not used
decompress_zstd() is used in two cases:
- CONFIG SECURITY_APPARMOR_COMPRESSED_POLICY: which allows for
compressed policy to be loaded
- CONFIG_SECURITY_APPARMOR_EXPORT_BINARY: which allows introspecting
loaded policy, that is stored in compressed form until it is needed.
When neither of these are selected there is no need for decpress_zstd(),
which results in the decompressed_zstd defined but not used message.
Only define decmpress_zstd() if either of those config options are
enabled. The stub routine is not needed because all calling code is
gated by one of those config options.
Fixes: 1c5f27e845e84 ("apparmor: Fix build failure when ZSTD_DECOMPRESS is not enabled")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
