diff options
| author | Harshit Mogalapalli <[email protected]> | 2023-09-27 06:58:01 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2023-10-04 18:58:33 +0000 |
| commit | 783a8334ec1cadefbb992ca2adbb459b0ee0f9f7 (patch) | |
| tree | 5fd0a2853c368db1f44b6410da6d7c6a05ba111f /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | cgroup/cpuset: Enable invalid to valid local partition transition (diff) | |
| download | kernel-783a8334ec1cadefbb992ca2adbb459b0ee0f9f7.tar.gz kernel-783a8334ec1cadefbb992ca2adbb459b0ee0f9f7.zip | |
cgroup/cpuset: Cleanup signedness issue in cpu_exclusive_check()
Smatch complains about returning negative error codes from a type
bool function.
kernel/cgroup/cpuset.c:705 cpu_exclusive_check() warn:
signedness bug returning '(-22)'
The code works correctly, but it is confusing. The current behavior is
that cpu_exclusive_check() returns true if it's *NOT* exclusive. Rename
it to cpusets_are_exclusive() and reverse the returns so it returns true
if it is exclusive and false if it's not. Update both callers as well.
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Harshit Mogalapalli <[email protected]>
Reviewed-by: Kamalesh Babulal <[email protected]>
Acked-by: Waiman Long <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
