Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1212744

[PATCH 2/6] fix android/lowmemorykiller.c several coding style issues

From Peng Sun <sironhide0null@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/6] fix android/lowmemorykiller.c several coding style issues
Date 2015-08-25 09:00 +0200
Message-ID <q1gn8-7jI-9@gated-at.bofh.it> (permalink)
References <q1gn8-7jI-3@gated-at.bofh.it> <q1gn8-7jI-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Corrections based on checkpatch.pl with --strict
1) Prefer kernel type 'u32' over 'uint32_t'
2) Please use a blank line after function/struct/union/enum declarations
3) Alignment should match open parenthesis

Signed-off-by: Peng Sun <sironhide0null@gmail.com>
---
 drivers/staging/android/lowmemorykiller.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c
index 872bd60..2315e41 100644
--- a/drivers/staging/android/lowmemorykiller.c
+++ b/drivers/staging/android/lowmemorykiller.c
@@ -42,13 +42,14 @@
 #include <linux/profile.h>
 #include <linux/notifier.h>
 
-static uint32_t lowmem_debug_level = 1;
+static u32 lowmem_debug_level = 1;
 static short lowmem_adj[6] = {
 	0,
 	1,
 	6,
 	12,
 };
+
 static int lowmem_adj_size = 4;
 static int lowmem_minfree[6] = {
 	3 * 512,	/* 6MB */
@@ -56,6 +57,7 @@ static int lowmem_minfree[6] = {
 	4 * 1024,	/* 16MB */
 	16 * 1024,	/* 64MB */
 };
+
 static int lowmem_minfree_size = 4;
 
 static unsigned long lowmem_deathpending_timeout;
@@ -104,8 +106,8 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
 	}
 
 	lowmem_print(3, "lowmem_scan %lu, %x, ofree %d %d, ma %hd\n",
-			sc->nr_to_scan, sc->gfp_mask, other_free,
-			other_file, min_score_adj);
+		     sc->nr_to_scan, sc->gfp_mask, other_free,
+		     other_file, min_score_adj);
 
 	if (min_score_adj == OOM_SCORE_ADJ_MAX + 1) {
 		lowmem_print(5, "lowmem_scan %lu, %x, return 0\n",
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] fix drivers/staging/android several coding issues Peng Sun <sironhide0null@gmail.com> - 2015-08-25 09:00 +0200
  [PATCH 4/6] fix android/sync.c several coding style issues Peng Sun <sironhide0null@gmail.com> - 2015-08-25 09:00 +0200
  [PATCH 1/6] fix android/ashmem.c several coding style issues Peng Sun <sironhide0null@gmail.com> - 2015-08-25 09:00 +0200
    [PATCH 3/6] fix android/sw_sync.c several coding style issues Peng Sun <sironhide0null@gmail.com> - 2015-08-25 09:00 +0200
    [PATCH 2/6] fix android/lowmemorykiller.c several coding style issues Peng Sun <sironhide0null@gmail.com> - 2015-08-25 09:00 +0200
  Re: [PATCH 0/6] fix drivers/staging/android several coding issues Joe Perches <joe@perches.com> - 2015-08-25 17:20 +0200

csiph-web