+7
−7
Loading
mainline inclusion from mainline-v6.7-rc1 commit 783a8334ec1cadefbb992ca2adbb459b0ee0f9f7 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I93ZFV CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=783a8334ec1cadefbb992ca2adbb459b0ee0f9f7 ---------------------------------------------------------------------- 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 <lkp@intel.com> Reported-by:
Dan Carpenter <error27@gmail.com> Closes: https://lore.kernel.org/r/202309201706.2LhKdM6o-lkp@intel.com/ Signed-off-by:
Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Reviewed-by:
Kamalesh Babulal <kamalesh.babulal@oracle.com> Acked-by:
Waiman Long <longman@redhat.com> Signed-off-by:
Tejun Heo <tj@kernel.org> Signed-off-by:
Chen Ridong <chenridong@huawei.com>