Skip to content

Commit

Permalink
mm-memcontrolc-introduce-helper-mem_cgroup_zoneinfo_zone-checkpatch-f…
Browse files Browse the repository at this point in the history
…ixes

WARNING: please, no spaces at the start of a line
torvalds#29: FILE: mm/memcontrol.c:689:
+       int nid = zone_to_nid(zone);$

WARNING: please, no spaces at the start of a line
torvalds#30: FILE: mm/memcontrol.c:690:
+       int zid = zone_idx(zone);$

WARNING: please, no spaces at the start of a line
torvalds#32: FILE: mm/memcontrol.c:692:
+       return mem_cgroup_zoneinfo(memcg, nid, zid);$

total: 0 errors, 3 warnings, 35 lines checked

./patches/mm-memcontrolc-introduce-helper-mem_cgroup_zoneinfo_zone.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Jianyu Zhan <nasa4836@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and hnaz committed Apr 24, 2014
1 parent 05bcbd7 commit 8c1416a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,10 @@ mem_cgroup_zoneinfo(struct mem_cgroup *memcg, int nid, int zid)
static struct mem_cgroup_per_zone *
mem_cgroup_zoneinfo_zone(struct mem_cgroup *memcg, struct zone *zone)
{
int nid = zone_to_nid(zone);
int zid = zone_idx(zone);
int nid = zone_to_nid(zone);
int zid = zone_idx(zone);

return mem_cgroup_zoneinfo(memcg, nid, zid);
return mem_cgroup_zoneinfo(memcg, nid, zid);
}

struct cgroup_subsys_state *mem_cgroup_css(struct mem_cgroup *memcg)
Expand Down

0 comments on commit 8c1416a

Please sign in to comment.