+ memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes
has been added to the -mm tree.  Its filename is
     memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

ERROR: code indent should use tabs where possible
#60: FILE: mm/memcontrol.c:106:
+        MEM_CGROUP_TARGET_THRESH,$

WARNING: please, no spaces at the start of a line
#60: FILE: mm/memcontrol.c:106:
+        MEM_CGROUP_TARGET_THRESH,$

ERROR: code indent should use tabs where possible
#61: FILE: mm/memcontrol.c:107:
+        MEM_CGROUP_TARGET_SOFTLIMIT,$

WARNING: please, no spaces at the start of a line
#61: FILE: mm/memcontrol.c:107:
+        MEM_CGROUP_TARGET_SOFTLIMIT,$

ERROR: code indent should use tabs where possible
#62: FILE: mm/memcontrol.c:108:
+        MEM_CGROUP_NTARGETS,$

WARNING: please, no spaces at the start of a line
#62: FILE: mm/memcontrol.c:108:
+        MEM_CGROUP_NTARGETS,$

ERROR: code indent should use tabs where possible
#70: FILE: mm/memcontrol.c:116:
+        unsigned long targets[MEM_CGROUP_NTARGETS];$

WARNING: please, no spaces at the start of a line
#70: FILE: mm/memcontrol.c:116:
+        unsigned long targets[MEM_CGROUP_NTARGETS];$

ERROR: code indent should use tabs where possible
#86: FILE: mm/memcontrol.c:648:
+        /* from time_after() in jiffies.h */$

ERROR: code indent should use tabs where possible
#93: FILE: mm/memcontrol.c:654:
+        unsigned long val, next;$

WARNING: please, no spaces at the start of a line
#93: FILE: mm/memcontrol.c:654:
+        unsigned long val, next;$

ERROR: code indent should use tabs where possible
#97: FILE: mm/memcontrol.c:658:
+        switch (target) {$

WARNING: please, no spaces at the start of a line
#97: FILE: mm/memcontrol.c:658:
+        switch (target) {$

ERROR: code indent should use tabs where possible
#98: FILE: mm/memcontrol.c:659:
+        case MEM_CGROUP_TARGET_THRESH:$

WARNING: please, no spaces at the start of a line
#98: FILE: mm/memcontrol.c:659:
+        case MEM_CGROUP_TARGET_THRESH:$

ERROR: code indent should use tabs where possible
#100: FILE: mm/memcontrol.c:661:
+            ^Ibreak;$

WARNING: please, no space before tabs
#100: FILE: mm/memcontrol.c:661:
+            ^Ibreak;$

WARNING: please, no spaces at the start of a line
#100: FILE: mm/memcontrol.c:661:
+            ^Ibreak;$

ERROR: code indent should use tabs where possible
#101: FILE: mm/memcontrol.c:662:
+        case MEM_CGROUP_TARGET_SOFTLIMIT:$

WARNING: please, no spaces at the start of a line
#101: FILE: mm/memcontrol.c:662:
+        case MEM_CGROUP_TARGET_SOFTLIMIT:$

ERROR: code indent should use tabs where possible
#103: FILE: mm/memcontrol.c:664:
+            ^Ibreak;$

WARNING: please, no space before tabs
#103: FILE: mm/memcontrol.c:664:
+            ^Ibreak;$

WARNING: please, no spaces at the start of a line
#103: FILE: mm/memcontrol.c:664:
+            ^Ibreak;$

ERROR: code indent should use tabs where possible
#106: FILE: mm/memcontrol.c:667:
+        }$

WARNING: please, no spaces at the start of a line
#106: FILE: mm/memcontrol.c:667:
+        }$

ERROR: code indent should use tabs where possible
#108: FILE: mm/memcontrol.c:669:
+        this_cpu_write(mem->stat->targets[target], next);$

WARNING: please, no spaces at the start of a line
#108: FILE: mm/memcontrol.c:669:
+        this_cpu_write(mem->stat->targets[target], next);$

ERROR: code indent should use tabs where possible
#120: FILE: mm/memcontrol.c:681:
+                __mem_cgroup_target_update(mem, MEM_CGROUP_TARGET_THRESH);$

WARNING: please, no spaces at the start of a line
#120: FILE: mm/memcontrol.c:681:
+                __mem_cgroup_target_update(mem, MEM_CGROUP_TARGET_THRESH);$

total: 14 errors, 15 warnings, 93 lines checked

NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
      scripts/cleanfile

./patches/memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp.patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/memcontrol.c |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff -puN mm/memcontrol.c~memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes mm/memcontrol.c
--- a/mm/memcontrol.c~memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes
+++ a/mm/memcontrol.c
@@ -103,9 +103,9 @@ enum mem_cgroup_events_index {
  * than using jiffies etc. to handle periodic memcg event.
  */
 enum mem_cgroup_events_target {
-        MEM_CGROUP_TARGET_THRESH,
-        MEM_CGROUP_TARGET_SOFTLIMIT,
-        MEM_CGROUP_NTARGETS,
+	MEM_CGROUP_TARGET_THRESH,
+	MEM_CGROUP_TARGET_SOFTLIMIT,
+	MEM_CGROUP_NTARGETS,
 };
 #define THRESHOLDS_EVENTS_TARGET (128)
 #define SOFTLIMIT_EVENTS_TARGET (1024)
@@ -113,7 +113,7 @@ enum mem_cgroup_events_target {
 struct mem_cgroup_stat_cpu {
 	long count[MEM_CGROUP_STAT_NSTATS];
 	unsigned long events[MEM_CGROUP_EVENTS_NSTATS];
-        unsigned long targets[MEM_CGROUP_NTARGETS];
+	unsigned long targets[MEM_CGROUP_NTARGETS];
 };
 
 /*
@@ -645,28 +645,28 @@ static bool __memcg_event_check(struct m
 
 	val = this_cpu_read(mem->stat->events[MEM_CGROUP_EVENTS_COUNT]);
 	next = this_cpu_read(mem->stat->targets[target]);
-        /* from time_after() in jiffies.h */
+	/* from time_after() in jiffies.h */
 	return ((long)next - (long)val < 0);
 }
 
 static void __mem_cgroup_target_update(struct mem_cgroup *mem, int target)
 {
-        unsigned long val, next;
+	unsigned long val, next;
 
 	val = this_cpu_read(mem->stat->events[MEM_CGROUP_EVENTS_COUNT]);
 
-        switch (target) {
-        case MEM_CGROUP_TARGET_THRESH:
+	switch (target) {
+	case MEM_CGROUP_TARGET_THRESH:
 		next = val + THRESHOLDS_EVENTS_TARGET;
-            	break;
-        case MEM_CGROUP_TARGET_SOFTLIMIT:
+		break;
+	case MEM_CGROUP_TARGET_SOFTLIMIT:
 		next = val + SOFTLIMIT_EVENTS_TARGET;
-            	break;
+		break;
 	default:
 		return;
-        }
+	}
 
-        this_cpu_write(mem->stat->targets[target], next);
+	this_cpu_write(mem->stat->targets[target], next);
 }
 
 /*
@@ -678,7 +678,7 @@ static void memcg_check_events(struct me
 	/* threshold event is triggered in finer grain than soft limit */
 	if (unlikely(__memcg_event_check(mem, MEM_CGROUP_TARGET_THRESH))) {
 		mem_cgroup_threshold(mem);
-                __mem_cgroup_target_update(mem, MEM_CGROUP_TARGET_THRESH);
+		__mem_cgroup_target_update(mem, MEM_CGROUP_TARGET_THRESH);
 		if (unlikely(__memcg_event_check(mem,
 			MEM_CGROUP_TARGET_SOFTLIMIT))){
 			mem_cgroup_update_tree(mem, page);
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

origin.patch
cpuset-add-a-missing-unlock-in-cpuset_write_resmask-fix.patch
mm-use-correct-numa-policy-node-for-transparent-hugepages-checkpatch-fixes.patch
linux-next.patch
next-remove-localversion.patch
i-need-old-gcc.patch
arch-alpha-kernel-systblss-remove-debug-check.patch
drivers-usb-serial-usb_wwanc-unbork.patch
mm-vmap-area-cache.patch
arch-x86-include-asm-delayh-fix-udelay-and-ndelay-for-8-bit-args.patch
drivers-gpu-drm-radeon-atomc-fix-warning.patch
leds-convert-bd2802-driver-to-dev_pm_ops-fix.patch
leds-route-kbd-leds-through-the-generic-leds-layer.patch
backlight-add-backlight-type-fix.patch
backlight-add-backlight-type-fix-fix.patch
drivers-message-fusion-mptsasc-fix-warning.patch
drbd-fix-warning.patch
mm.patch
mm-allow-gup-to-fail-instead-of-waiting-on-a-page-fix.patch
mm-batch-free-pcp-list-if-possible-fix.patch
pagewalk-only-split-huge-pages-when-necessary-checkpatch-fixes.patch
mm-compaction-minimise-the-time-irqs-are-disabled-while-isolating-pages-for-migration-fix.patch
ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages-fix.patch
ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages-fix-fix.patch
mm-add-__gfp_other_node-flag-checkpatch-fixes.patch
mm-use-__gfp_other_node-for-transparent-huge-pages-checkpatch-fixes.patch
mm-add-vm-counters-for-transparent-hugepages-checkpatch-fixes.patch
frv-duplicate-output_buffer-of-e03-checkpatch-fixes.patch
hpet-factor-timer-allocate-from-open.patch
arch-alpha-include-asm-ioh-s-extern-inline-static-inline.patch
kernel-cpuc-fix-many-errors-related-to-style-fix.patch
lib-vsprintf-optimised-put_dec-function-fix.patch
epoll-fix-compiler-warning-and-optimize-the-non-blocking-path.patch
lib-hexdumpc-make-hex2bin-return-the-updated-src-address.patch
fs-binfmt_miscc-use-kernels-hex_to_bin-method-fix.patch
fs-binfmt_miscc-use-kernels-hex_to_bin-method-fix-fix.patch
memcg-use-native-word-page-statistics-counters-fix-event-counter-breakage-with-thp-checkpatch-fixes.patch
mm-memcontrolc-suppress-uninitializer-var-warning-with-older-gccs.patch
cpuset-fix-unchecked-calls-to-nodemask_alloc.patch
userns-security-make-capabilities-relative-to-the-user-namespace-fix.patch
userns-security-make-capabilities-relative-to-the-user-namespace-fix-fix.patch
userns-user-namespaces-convert-several-capable-calls-checkpatch-fixes.patch
userns-userns-check-user-namespace-for-task-file-uid-equivalence-checks-checkpatch-fixes.patch
userns-rename-is_owner_or_cap-to-inode_owner_or_capable-fix.patch
userns-rename-is_owner_or_cap-to-inode_owner_or_capable-fix-fix.patch
scatterlist-new-helper-functions.patch
crash_dump-export-is_kdump_kernel-to-modules-consolidate-elfcorehdr_addr-setup_elfcorehdr-and-saved_max_pfn-fix.patch
crash_dump-export-is_kdump_kernel-to-modules-consolidate-elfcorehdr_addr-setup_elfcorehdr-and-saved_max_pfn-fix-fix.patch
crash_dump-export-is_kdump_kernel-to-modules-consolidate-elfcorehdr_addr-setup_elfcorehdr-and-saved_max_pfn-fix-fix-fix.patch
journal_add_journal_head-debug.patch
slab-leaks3-default-y.patch
put_bh-debug.patch
memblock-add-input-size-checking-to-memblock_find_region.patch
memblock-add-input-size-checking-to-memblock_find_region-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux