aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorEnzo Matsumiya <[email protected]>2024-09-16 16:30:49 +0000
committerSteve French <[email protected]>2024-09-17 01:10:39 +0000
commit5ac1f99fdd09d80223e8f47dffaea41a6563aace (patch)
treed8c4bea7ef360eefb35f2d5d2e3d3ce64176a97f /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentcifs: Update SFU comments about fifos and sockets (diff)
downloadkernel-5ac1f99fdd09d80223e8f47dffaea41a6563aace.tar.gz
kernel-5ac1f99fdd09d80223e8f47dffaea41a6563aace.zip
smb: client: fix compression heuristic functions
Change is_compressible() return type to bool, use WARN_ON_ONCE(1) for internal errors and return false for those. Renames: check_repeated_data -> has_repeated_data check_ascii_bytes -> is_mostly_ascii (also refactor into a single loop) calc_shannon_entropy -> has_low_entropy Also wraps "wreq->Length" in le32_to_cpu() in should_compress() (caught by sparse). Signed-off-by: Enzo Matsumiya <[email protected]> Suggested-by: Dan Carpenter <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions