Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 authored and sfrothwell committed Apr 22, 2014
1 parent d1bb310 commit ab35508
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 ab35508

Please sign in to comment.