kernel/cgroup: Remove the unused variable climit
Subsystems (2)
PATCH 1/1 kernel/cgroup: Remove the unused variable climit
Variable climit is not effectively used, so delete it.
kernel/cgroup/dmem.c:302:23: warning: variable ‘climit’ set but not used.
--- kernel/cgroup/dmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/cgroup/dmem.c +1 -2
@@ -299,7 +299,7 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, bool ignore_low, bool *ret_hit_low) { struct dmem_cgroup_pool_state *pool = test_pool; -struct page_counter *climit, *ctest; +struct page_counter *ctest;u64 used, min, low;/* Can always evict from current pool, despite limits */
@@ -324,7 +324,6 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, {} } - climit = &limit_pool->cnt; ctest = &test_pool->cnt;dmem_cgroup_calculate_protection (limit_pool, test_pool);
Signature · 1 line
2.32.0.3.g01195cf9f
Quoted 25 lines · Jiapeng Chong
Variable climit is not effectively used, so delete it.
kernel/cgroup/dmem.c:302:23: warning: variable ‘climit’ set but not used.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- kernel/cgroup/dmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/cgroup/dmem.c +1
-1@@ -299,7 +299,7 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, bool ignore_low, bool *ret_hit_low) { struct dmem_cgroup_pool_state *pool = test_pool; -struct page_counter *climit, *ctest; +struct page_counter *ctest;u64 used, min, low;/* Can always evict from current pool, despite limits */
kernel/cgroup/dmem.c bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, · line 329
Quoted 7 lines
kernel/cgroup/dmem.c +0
-1@@ -324,7 +324,6 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, {} } - climit = &limit_pool->cnt; ctest = &test_pool->cnt;dmem_cgroup_calculate_protection (limit_pool, test_pool);
The dmem controller is actually pulled into the drm tree at the moment.
cc relevant parties on how to handle this fix commit.
Cheers,
Longman
Maxime Ripard
maintainerQuoted 33 lines · Waiman Long
Quoted 24 lines · Jiapeng Chong
Variable climit is not effectively used, so delete it.
kernel/cgroup/dmem.c:302:23: warning: variable ‘climit’ set but not used.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- kernel/cgroup/dmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/cgroup/dmem.c +1
-1@@ -299,7 +299,7 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, bool ignore_low, bool *ret_hit_low) { struct dmem_cgroup_pool_state *pool = test_pool; -struct page_counter *climit, *ctest; +struct page_counter *ctest;u64 used, min, low;/* Can always evict from current pool, despite limits */ kernel/cgroup/dmem.c bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, · line 327
Quoted 5 lines
kernel/cgroup/dmem.c +0
-1@@ -324,7 +324,6 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, {} } - climit = &limit_pool->cnt; ctest = &test_pool->cnt;dmem_cgroup_calculate_protection (limit_pool, test_pool);The dmem controller is actually pulled into the drm tree at the moment.
Quoted 1 line
cc relevant parties on how to handle this fix commit.
We can either take it through drm with one of the cgroup maintainers ack, or they can merge the PR in their tree and merge the fixes as they wish through their tree.
Maxime
Quoted 34 lines · Maxime Ripard
Quoted 33 lines · Waiman Long
Quoted 24 lines · Jiapeng Chong
Variable climit is not effectively used, so delete it.
kernel/cgroup/dmem.c:302:23: warning: variable ‘climit’ set but not used.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- kernel/cgroup/dmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/cgroup/dmem.c +1
-1@@ -299,7 +299,7 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, bool ignore_low, bool *ret_hit_low) { struct dmem_cgroup_pool_state *pool = test_pool; -struct page_counter *climit, *ctest; +struct page_counter *ctest;u64 used, min, low;/* Can always evict from current pool, despite limits */ kernel/cgroup/dmem.c bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, · line 327
Quoted 5 lines
kernel/cgroup/dmem.c +0
-1@@ -324,7 +324,6 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, {} } - climit = &limit_pool->cnt; ctest = &test_pool->cnt;dmem_cgroup_calculate_protection (limit_pool, test_pool);The dmem controller is actually pulled into the drm tree at the moment.
Quoted 5 lines
Quoted 1 line
cc relevant parties on how to handle this fix commit.
We can either take it through drm with one of the cgroup maintainers ack, or they can merge the PR in their tree and merge the fixes as they wish through their tree.
Please route with the rest of dmem changes.
Thanks.
Signature · 1 line
tejun
Quoted 5 lines · Jiapeng Chong
Variable climit is not effectively used, so delete it.
kernel/cgroup/dmem.c:302:23: warning: variable ‘climit’ set but not used.
Applied to misc/kernel.git (drm-misc-next-fixes).
Thanks!
Maxime