diff options
| author | K Prateek Nayak <[email protected]> | 2022-02-18 16:27:43 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2022-03-08 15:08:40 +0000 |
| commit | 7f434dff76215af00c26ba6449eaa4738fe9e2ab (patch) | |
| tree | 0de225b4643b7b1620312de7ba6d47d57fd3f49e /security/selinux/netnode.c | |
| parent | sched/deadline,rt: Remove unused parameter from pick_next_[rt|dl]_entity() (diff) | |
| download | kernel-7f434dff76215af00c26ba6449eaa4738fe9e2ab.tar.gz kernel-7f434dff76215af00c26ba6449eaa4738fe9e2ab.zip | |
sched/topology: Remove redundant variable and fix incorrect type in build_sched_domains
While investigating the sparse warning reported by the LKP bot [1],
observed that we have a redundant variable "top" in the function
build_sched_domains that was introduced in the recent commit
e496132ebedd ("sched/fair: Adjust the allowed NUMA imbalance when
SD_NUMA spans multiple LLCs")
The existing variable "sd" suffices which allows us to remove the
redundant variable "top" while annotating the other variable "top_p"
with the "__rcu" annotation to silence the sparse warning.
[1] https://lore.kernel.org/lkml/[email protected]/
Fixes: e496132ebedd ("sched/fair: Adjust the allowed NUMA imbalance when SD_NUMA spans multiple LLCs")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: K Prateek Nayak <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'security/selinux/netnode.c')
0 files changed, 0 insertions, 0 deletions
