set_migratetype_isolate: remove unused variable.
Subsystems (2)
PATCH 1/1 set_migratetype_isolate: remove unused variable.
--- mm/page_alloc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
mm/page_alloc.c +0 -2
@@ -5508,10 +5508,8 @@ int set_migratetype_isolate(struct page *page)struct memory_isolate_notify arg;int notifier_ret;int ret = -EBUSY ; -int zone_idx; zone =page_zone (page); - zone_idx =zone_idx (zone);spin_lock_irqsave (&zone->lock, flags);
Signature · 1 line
1.7.5.1
Quoted 1 line · Luca Tettamanti
Signed-off-by Luca Tettamanti <[email protected]>
If it's trivial, please write log body down.
Anyway, nice catch.
Thanks.
Signature · 9 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 5 lines · Minchan Kim
Quoted 1 line · Luca Tettamanti
Signed-off-by Luca Tettamanti <[email protected]>Reviewed-by Minchan Kim <[email protected]>If it's trivial, please write log body down.
Ok, I'll keep that in mind.
Quoted 1 line
Anyway, nice catch.
I'm cheating ;-)
I'm working with warnings generated by gcc-4.6 and - yes - I'm screening false positives and compiling the patches :-)
Luca
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
KOSAKI Motohiro
Reviewed-byQuoted 8 lines · Luca Tettamanti
Quoted 5 lines · Minchan Kim
Quoted 1 line · Luca Tettamanti
Signed-off-by Luca Tettamanti <[email protected]>Reviewed-by Minchan Kim <[email protected]>If it's trivial, please write log body down.
Ok, I'll keep that in mind.
If you fix zero patch description issue,
Anyway, nice catch!
PATCH v2 1/1 set_migratetype_isolate: remove unused variable.
zone_idx is never read inside the function.
--- mm/page_alloc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
mm/page_alloc.c +0 -2
@@ -5508,10 +5508,8 @@ int set_migratetype_isolate(struct page *page)struct memory_isolate_notify arg;int notifier_ret;int ret = -EBUSY ; -int zone_idx; zone =page_zone (page); - zone_idx =zone_idx (zone);spin_lock_irqsave (&zone->lock, flags);
Signature · 1 line
1.7.5.1