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


Groups > linux.kernel > #1688031 > unrolled thread

[PATCH 01/10] percpu: pcpu-stats change void buffer to int buffer

Started byDennis Zhou <dennisz@fb.com>
First post2017-07-16 04:30 +0200
Last post2017-07-17 16:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 01/10] percpu: pcpu-stats change void buffer to int buffer Dennis Zhou <dennisz@fb.com> - 2017-07-16 04:30 +0200
    Re: [PATCH 01/10] percpu: pcpu-stats change void buffer to int buffer Tejun Heo <tj@kernel.org> - 2017-07-17 16:50 +0200

#1688031 — [PATCH 01/10] percpu: pcpu-stats change void buffer to int buffer

FromDennis Zhou <dennisz@fb.com>
Date2017-07-16 04:30 +0200
Subject[PATCH 01/10] percpu: pcpu-stats change void buffer to int buffer
Message-ID<u3HtM-19b-1@gated-at.bofh.it>
From: "Dennis Zhou (Facebook)" <dennisszhou@gmail.com>

Changes the use of a void buffer to an int buffer for clarity.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
---
 mm/percpu-stats.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/percpu-stats.c b/mm/percpu-stats.c
index 03524a5..0d81044 100644
--- a/mm/percpu-stats.c
+++ b/mm/percpu-stats.c
@@ -49,7 +49,7 @@ static int find_max_map_used(void)
  * the beginning of the chunk to the last allocation.
  */
 static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
-			    void *buffer)
+			    int *buffer)
 {
 	int i, s_index, last_alloc, alloc_sign, as_len;
 	int *alloc_sizes, *p;
@@ -113,7 +113,7 @@ static int percpu_stats_show(struct seq_file *m, void *v)
 {
 	struct pcpu_chunk *chunk;
 	int slot, max_map_used;
-	void *buffer;
+	int *buffer;
 
 alloc_buffer:
 	spin_lock_irq(&pcpu_lock);
-- 
2.9.3

[toc] | [next] | [standalone]


#1689139

FromTejun Heo <tj@kernel.org>
Date2017-07-17 16:50 +0200
Message-ID<u4fvt-6kS-27@gated-at.bofh.it>
In reply to#1688031
On Sat, Jul 15, 2017 at 10:23:06PM -0400, Dennis Zhou wrote:
> From: "Dennis Zhou (Facebook)" <dennisszhou@gmail.com>
> 
> Changes the use of a void buffer to an int buffer for clarity.
> 
> Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>

Applied to percpu/for-4.14.h

Thanks.

-- 
tejun

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web