Commit cd6a884d authored by Dennis Zhou (Facebook)'s avatar Dennis Zhou (Facebook) Committed by Tejun Heo

percpu: pcpu-stats change void buffer to int buffer

Changes the use of a void buffer to an int buffer for clarity.
Signed-off-by: default avatarDennis Zhou <dennisszhou@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 5771a8c0
...@@ -49,7 +49,7 @@ static int find_max_map_used(void) ...@@ -49,7 +49,7 @@ static int find_max_map_used(void)
* the beginning of the chunk to the last allocation. * the beginning of the chunk to the last allocation.
*/ */
static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk, 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 i, s_index, last_alloc, alloc_sign, as_len;
int *alloc_sizes, *p; int *alloc_sizes, *p;
...@@ -113,7 +113,7 @@ static int percpu_stats_show(struct seq_file *m, void *v) ...@@ -113,7 +113,7 @@ static int percpu_stats_show(struct seq_file *m, void *v)
{ {
struct pcpu_chunk *chunk; struct pcpu_chunk *chunk;
int slot, max_map_used; int slot, max_map_used;
void *buffer; int *buffer;
alloc_buffer: alloc_buffer:
spin_lock_irq(&pcpu_lock); spin_lock_irq(&pcpu_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment